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. Qprocess show stdoutput only on ending of excecution.
Forum Updated to NodeBB v4.3 + New Features

Qprocess show stdoutput only on ending of excecution.

Scheduled Pinned Locked Moved Unsolved General and Desktop
23 Posts 6 Posters 8.0k Views 1 Watching
  • 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.
  • J Offline
    J Offline
    jdascenzio
    wrote on last edited by
    #21

    I have the same trouble. It's seems to happen when the end of line send by a process is only \n instead of \r\n for windows.....

    G 1 Reply Last reply
    0
    • J jdascenzio

      I have the same trouble. It's seems to happen when the end of line send by a process is only \n instead of \r\n for windows.....

      G Offline
      G Offline
      greenpitaya
      wrote on last edited by
      #22

      Also facing the same issues, ping works fine realtime, but the readyRead signal isnt getting triggered when theres a 'print' command on my custom executable. As everyone else, it gets triggered only after the process is completed.

      @saran were you able to debug this problem eventually?

      @jdascenzio does using \r \n solve this problem? It did not for me

      1 Reply Last reply
      0
      • J Offline
        J Offline
        jarl93rsa
        wrote on last edited by
        #23

        Yes I realise this topic is old, but replying to it anyway as it's one of the first things that appear in google when you search this issue.

        For anyone who hasn't resolved this there's a chance your application is buffering its stdout, and it's not a problem on the qt side.

        I had this same issue, my logging functions writing to stdout in the application I was trying to get output from wouldn't show until the process had finished. It was resolved by flushing stdout.

        In my case my c program log function would write to printf(), and at the end of those functions I needed to put fflush(stdout).

        1 Reply Last reply
        2

        • Login

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