PDA

View Full Version : How do I associate a picture with a QGraphicsItem



di_zou
19th January 2010, 17:23
I am looking for something similar to the setPixmap() function in the QLabel class.
So when I call QGraphicsScene.addItem(QGraphicsItem), I want a picture displayed where the QGraphicsItem is.

di_zou
19th January 2010, 17:39
Nevermind, figured it out

axeljaeger
19th January 2010, 22:15
Just in case anyone else wants to do that: Use a QGraphicsPixmapItem.