Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [solved] QProcess interaction
QtWS25 Last Chance

[solved] QProcess interaction

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 2.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ahsub
    wrote on last edited by
    #1

    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 127.0.0.1 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?

    1 Reply Last reply
    0
    • G Offline
      G Offline
      giesbert
      wrote on last edited by
      #2

      If you look at the API of QProcess, it should be possible. Look at "QProcess::readyReadStandardOutput":http://doc.qt.nokia.com/4.7/qprocess.html#readyReadStandardOutput

      Nokia Certified Qt Specialist.
      Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

      1 Reply Last reply
      0
      • A Offline
        A Offline
        ahsub
        wrote on last edited by
        #3

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

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved