PDA

View Full Version : QPainter in QGraphicsScene



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

Lykurg
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?