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

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

    XMLWordPrintable

Details

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

    Description

      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!

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes