Is it possible to pass arguments to the gcc compiler from a gui app? e.g some text from a textedit to the compiler. Can anyone suggest some way to do this?
Is it possible to pass arguments to the gcc compiler from a gui app? e.g some text from a textedit to the compiler. Can anyone suggest some way to do this?
For arguments see the QStringList argument of QProcess::start()
For content you have to check if the target exectuable can read from stdin or if it needs a file. In the first case see QProcess:write(), in the second case see QTemporayFile
Cheers,
_
@anda_skoa, Can you please help me with some code? I am relatively new to Qt....
Start here , check the "Running a Process" section, there is an example included.
Bookmarks