Qt Official Documentation saysOriginally Posted by jacek
So, you must use QPainter pointer.QPainter::QPainter ( QPaintDevice * pd )
Constructs a painter that begins painting the paint device pd immediately.
This constructor is convenient for short-lived painters, e.g. in a paint event and should be used only once.
The constructor calls begin() for you and the QPainter destructor automatically calls end().





Reply With Quote
Bookmarks