Every QObject (QProcess is a QObject) takes a parent parameter for a reason. Make sure to pass a proper parent or delete the object yourself. Otherwise you'll get a memory leak.
Take a closer look at QProcess::start() docs. It's a void function. No bool is returned.Now I got an even worse one.
Qt Code:
mainwindow.cpp: In member function ‘void mainwindow::doit()’: mainwindow.cpp:33: error: could not convert ‘((mainwindow*)this)->mainwindow::proc-> QProcess::start(((const QString&)((const QString*)(& program))), ((const QStringList&)((const QStringList*)(& arguments))), QFlags<QIODevice::OpenModeFlag>(ReadWrite))’ to ‘bool’To copy to clipboard, switch view to plain text mode
Bookmarks