
Originally Posted by
marcel
Try with QProcess::execute. I think you have to add quotes to arguments that contain any spaces, on Windows.
You also should connect the QProcess::finished signal to a slot in one of your classes.
Regards
Thanks.
I am using start() method instead of execute, otherwise I won't be able to connect the signals/slots.
void start
( const QString
& program,
const QStringList & arguments, OpenMode mode
= ReadWrite
) void start
( const QString & program, OpenMode mode
= ReadWrite
)
void start( const QString& program, const QStringList & arguments, OpenMode mode = ReadWrite )
void start ( const QString & program, OpenMode mode = ReadWrite )
To copy to clipboard, switch view to plain text mode
The problem is what is the "program" and what is the "arguments"? I try both methods, neither works, because the actual command has its own arguments.
Bookmarks