title: Preventing PyQt to silence exceptions occurring in slots
body: <p>As far as I can see, if an exception occurs in a slot under PyQt, the exception is printed to screen, but not bubbled. This creates a problem in my testing strategy, because if an exception occurs in a slot, I will not see the test fail.</p>
  
  <p>Here is an example:</p>
  
  <pre><code>import sys
  from PyQt4 import QtGui, QtCore
  
  class Test(QtGui.QPushButton):
      def __init__(self, parent=None):
          QtGui.QWidget.__init__(self, parent)
          self.setText("hello")
          self.connect(self, QtCore.SIGNAL("clicked()"), self.buttonClicked)
  
      def buttonClicked(self):
          print "clicked"
          raise Exception("wow")
  
  app=QtGui.QApplication(sys.argv)
  t=Test()
  t.show()
  try:
      app.exec_()
  except:
      print "exiting"
  </code></pre>
  
  <p>Note how the exception never quits the program. </p>
  
  <p>Is there a way to work around this problem?</p>