I have QGraphicsScene with a bunch of QGraphicsPixmapItems in it. When I click on the item, the bounding rectangle around the pixmap is displayed. How do I turn off displaying the bounding rectangle?
I have QGraphicsScene with a bunch of QGraphicsPixmapItems in it. When I click on the item, the bounding rectangle around the pixmap is displayed. How do I turn off displaying the bounding rectangle?
Any suggestions?
This is the default way of a QGraphicsItem to show it has been selected.
If you don't need the feature you could call
otherwise you have to subclass QGraphicsPixmapItem and override the paint method.Qt Code:
To copy to clipboard, switch view to plain text mode
Bookmarks