I'm looking for the solution from many days!!
This is the SIGNAL:
self.connect(self.process, QtCore.SIGNAL("readyReadStdout()"), self.readOutput)
self.connect(self.process, QtCore.SIGNAL("readyReadStderr()"), self.readErrors)
self.connect(self.process, QtCore.SIGNAL("readyReadStdout()"), self.readOutput)
self.connect(self.process, QtCore.SIGNAL("readyReadStderr()"), self.readErrors)
To copy to clipboard, switch view to plain text mode
and this is the SLOT:
def readOutput(self):
#print self.process.readStdout()
self.
textBrowser.
append(QtGui.
QString(self.
process.
readStdout())) #if self.process.isRunning()==False:
# self.textBrowser.append("\n Completed Successfully")
def readErrors(self):
self.
textBrowser.
append("error: " + QtGui.
QString(self.
process.
readLineStderr()))
def readOutput(self):
#print self.process.readStdout()
self.textBrowser.append(QtGui.QString(self.process.readStdout()))
#if self.process.isRunning()==False:
# self.textBrowser.append("\n Completed Successfully")
def readErrors(self):
self.textBrowser.append("error: " + QtGui.QString(self.process.readLineStderr()))
To copy to clipboard, switch view to plain text mode
....Where is the mistake?
Bookmarks