View Full Version : QPainter in QGraphicsScene

15th February 2011, 08:27

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?

15th February 2011, 08:35
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?