I am trying to initialize QTextStream to stdout, but am getting this error. I am trying to redirect stdout, while following the PySide docs (even though it doesn't use proper Python syntax).
stream = QtCore.QTextStream(sys.stdout)
TypeError: 'PySide.QtCore.QTextStream' called with wrong argument types:
PySide.QtCore.QTextStream(file)
Supported signatures:
PySide.QtCore.QTextStream()
PySide.QtCore.QTextStream(PySide.QtCore.QByteArray, PySide.QtCore.QIODevice.OpenMode = QIODevice.ReadWrite)
PySide.QtCore.QTextStream(PySide.QtCore.QIODevice)
I am trying to initialize QTextStream to stdout, but am getting this error. I am trying to redirect stdout, while following the PySide docs (even though it doesn't use proper Python syntax).