Hello,
Every graphics item, in paint() , uses QPainter object to perform painting.Why i cant use individual QPainter object to paint a graphicsitem . Where does the item get the instance of the painter?
Hello,
Every graphics item, in paint() , uses QPainter object to perform painting.Why i cant use individual QPainter object to paint a graphicsitem . Where does the item get the instance of the painter?
Since the items doesn't inherit QWidget (or QPaintDevice) you can't use an individual painter. You haven't anything to paint on. And why do you need one, the provided is just fine. isn't it?
Bookmarks