Qt: is there a way to send a signal when a QProcess writes a line to stdout

前端 未结 3 849
独厮守ぢ
独厮守ぢ 2021-01-13 17:39

I\'ve found similar questions but never the exact answer. I have Qt program that starts a QProcess and writes the output to a QTextEdit box, so far so good. But it only does

3条回答
  •  既然无缘
    2021-01-13 18:21

    readLine() probably waits till the first '\n' character is read.

    readAllStandardOutput on the other hand returns all data available from the standard output of the process.

    So it seems to me that if you use readAllStandardOutput() you may get more performance.

    You have to try though.

提交回复
热议问题