2
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.

Kunal Deo
  • 2,248
  • 2
  • 18
  • 27
  • I have just discovered that above statement works fine with process.start. Any idea what to for startDetached() – Kunal Deo Dec 09 '12 at 23:39

1 Answers1

3

startDetached() is a static method, so it's not called on an object. Therefore, no object will ever end up emitting the finished signal either.

As explained here: Similar question on stackoverflow

Community
  • 1
  • 1
Neko
  • 3,550
  • 7
  • 28
  • 34