[Solved] How to get command line return data from other application?

  • Dear all,

    I would like to do like that. Firstly, I have to run console application which will return some string from input arguments.
    I have to make a lot of works like that. So, how can I automatically input & grab return from that console application with Qt.

    That console application is not written in Qt & running platform is Windows.


  • [[Doc:QProcess]] can do that for you. It gives you two channels for the output of the application: stderr and stdout. This also works on Windows.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.