Hi, maybe you can tell me what I'm doing wrong. Using Qt4 PyQt. I get no errors but my slot/handler never fires.

Thanks for looking - this is driving me nuts.

Qt Code:
  1. #MainApplication.py
  2. from PyQt4.QtGui import QApplication
  3. from PyQt4 import QtCore
  4.  
  5. class Application(QApplication):
  6.  
  7. def __init__(self, *args):
  8. QApplication.__init__(self, *args)
  9.  
  10. def setupSignals(self):
  11. print "setting up signals..."
  12. QtCore.QObject.connect(self, QtCore.SIGNAL("focusChanged()"), self.changedFocusSlot)
  13.  
  14. def changedFocusSlot(self, old, now):
  15. print "focus changed"
To copy to clipboard, switch view to plain text mode 
Qt Code:
  1. #main.py
  2. #!/usr/bin/python
  3.  
  4. from mainWindowUI import MainWindow
  5. from PyQt4 import QtGui, QtCore
  6. import sys
  7. from MainApplication import Application
  8.  
  9. def main():
  10. app = Application(sys.argv)
  11. wnd = MainWindow()
  12. wnd.show()
  13. wnd.activateWindow()
  14. app.setupSignals()
  15. sys.exit(app.exec_())
  16.  
  17. if __name__ == '__main__':
  18. main()
To copy to clipboard, switch view to plain text mode