I have to run a system command in Qt, but I have to give an argument for that command.
for example opening a text file with gedit
:
gedit /home/oDx/Documents/a.txt"
but the path /home/oDx/Documents/a.txt
will be in a variable like docPath
.
How can I achieve this?