class Main(QtGui.QMainWindow):
self.process = QtCore.QProcess(self)
QtCore.QObject.connect(self.process,QtCore.SIGNAL("finished(int)"),self.processCompleted)
def processCompleted(self):
self.ui.statusText.setText("Finished")
self.process.startDetached(command,arguments)
I am not able to get the finished signal emitted here. Can anybody help me here.
startDetached()is a static method, so it’s not called on an object. Therefore, no object will ever end up emitting thefinishedsignal either.As explained here: Similar question on stackoverflow