"QPainter::begin: Paint device returned engine == 0, type: 1"

Viewed 4616

I have the following test code:

import sys
from PySide.QtGui import *

app = QApplication(sys.argv)
widget = QWidget()
painter = QPainter(widget)

Upon creating the QPainter object, I get the error message:

QPainter::begin: Paint device returned engine == 0, type: 1

Why?

1 Answers
Related