Important: Please read the Qt Code of Conduct -

[solved] QProcess interaction

  • is there a way to have the output of a process pushed to the interface in real time.
    for example: if i run a ping in a process, the interface should show immediately "pinging ..."
    then the first ping, the second ping ...

    the usual way is to wait till the process completes, then use readall to capture the output and print it to the interface.
    but, this way the user has to wait till the process completes and only then will be able to see all the output.

    instead if he/she can see it real time, it will be very efficient. is that possible?

  • If you look at the API of QProcess, it should be possible. Look at "QProcess::readyReadStandardOutput":

  • thank you for the reply. am now reading the same :)

Log in to reply