title: Logging All Exceptions in a pyqt4 app
body: <p>What's the best way to log all of the exceptions in a pyqt4 application using the standard python logging api?</p>
  
  <p>I've tried wrapping exec_() in a try, except block, and logging the exceptions from that, but it only logs exceptions from the initialization of the app.</p>
  
  <p>As a temporary solution, I wrapped the most important methods in try, except blocks, but that can't be the only way to do it.</p>