title: "QPainter::begin: Paint device returned engine == 0, type: 1"
body: <p>I have the following test code:</p>
  
  <pre><code>import sys
  from PySide.QtGui import *
  
  app = QApplication(sys.argv)
  widget = QWidget()
  painter = QPainter(widget)
  </code></pre>
  
  <p>Upon creating the QPainter object, I get the error message:</p>
  
  <pre><code>QPainter::begin: Paint device returned engine == 0, type: 1
  </code></pre>
  
  <p>Why?</p>