How many times does this same question have to be answered in this forum?
If you want to run a command with command line parameters using QProcess, you have to give QProcess::start() or QProcess::startDetached() at least two arguments: a QString containing the command to be executed and a QStringList containing the parameters to the command:
Qt Code:
To copy to clipboard, switch view to plain text mode
QProcess::startDetached() is a static method, therefore no QProcess instance is required.




Reply With Quote

Bookmarks