Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-80322

QProcess::readAllStandardOutput() and QProcess::readAllStandardError() returns output only first time

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: P4: Low P4: Low
    • None
    • 5.13.2
    • Core: I/O, Documentation
    • None
    • KaOS fully updated.
    • Linux/X11

      When I run my test script I notice that I can get valid output only when I call:

      QProcess::readAllStandardOutput()

      QProcess::readAllStandardError()

      first time. Any subsequent calls are empty. I read carefuly documentation of these functions but I don't find any mention about such behaviour. I suppose that this can be valid when we use QProcess::waitForFinished(XXX) in some small XXX and read partial results from output of sub process. But where there is some info about this?

      I attach minimal working example of this behaviour.

      Please update documentation or fix QProcess.

      Thank you for great job!

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            thiago Thiago Macieira
            szykcech Szyk Cech
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes