Switch to QProcess, which is what I intended to use from the start, and had some success.
I can now set the wait cursor for the textWidget only.
@def run_process(self):
self.textEdit.viewport().setCursor(Qt.WaitCursor)
self.textEdit.clear()
self.textEdit.append("Standby, this proc takes time.")
self.runner = QProcess(self)
self.runner.readyReadStandardOutput.connect(self.GetStd)
self.runner.start('ext_proc.sh')
def GetStd(self)
StdOut = str(self.runner.readAllStandardOutput())
self.textEdit.append(StdOut)
self.textEdit.viewport().setCursor(Qt.IBeamCursor@
The problem now is that the Ibeam cursor is reset upon the first input of standard out. However, ext_proc.sh is still running.
Tried some things with waitForFinished() but it froze the interface.
Is there a way to keep the wait cursor until the external process is complete without locking the GUI?
Thanks in advance,
Cheers,