Details
-
Bug
-
Resolution: Out of scope
-
Not Evaluated
-
None
-
5.15.2
-
None
-
Ubuntu 20.04.2 LTS
Description
I am using two instances of QProcess
QProcess
In some portions of my code I need process1 to redirect its output to process2.
By following Qt documentation I can use
QProcess.setStandardOutput()
From the documentation I have copied the code below.
process1 = QProcess() process2 = QProcess() process1.setStandardOutputProcess(process2) process1.start("command1") process2.start("command2")
If I want to change it back to default. Meaning, that I don't want process1 output to go to process2
process1.setStandardOutput(None)
It will cause a core dump. Using the code below will not cause a core dump.
process1.setStandardOutput(QProcess())
Is that normal behavior?