[Interest] QProcess unbuffered

Scott Bloom scott at towel42.com
Mon Mar 6 02:11:13 CET 2023


I have an external executable (mkvalidator from https://www.matroska.org/downloads/mkvalidator.html

It never flushes the output, and it uses linefeed without carriage returns to overwrite existing text on the output.

The problem is, when I run it via QProcess (on windows, Qt 5.15.10), I get zero output until the process ends.  As if it was buffered, and the output was finally flushed

When running from the command line, I do get output continuously during the processing.

I setup a timer to waitForRead, didn't do anything. I cant seem to force the QProcess to read all stdout or stderror info.

Any thoughts?

TIA
Scott
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20230306/36aef92f/attachment.htm>


More information about the Interest mailing list