I need to execute a system command in Qt and provide an argument for the 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?