As Wysota says:
QProcess::readyReadStdout() is a PyQt3 signal. Check all of your functions against the doc that you linked in post #14.connect to the appropriate signal
As Wysota says:
QProcess::readyReadStdout() is a PyQt3 signal. Check all of your functions against the doc that you linked in post #14.connect to the appropriate signal
Yeah.... i found the mistake this morning, The correct signals are:
but now i read the text printed by test1.py only when the process is terminated.Qt Code:
readyReadStandardOutput() readyReadStandardError()To copy to clipboard, switch view to plain text mode
I'd like to read line by line while it is running
A forum search yielded a similar thread.
For Python read the manual page: man python
I can't modify the original test1.py script and flushing device after print.
From man python:So just pass the "-u" switch as an argument when you call QProcess::start().-u Force stdin, stdout and stderr to be totally unbuffered.
It Works!!!! Thanks so much norobro and wysota!!
What book you advise me to read about Qt an python? Rapid gui?
Bookmarks