PDA

View Full Version : How change selected item rectangle on QGraphicsScene



xray2000
18th May 2010, 15:04
Hi all.
I need to change selected item rectangle (rectangle that draws around selected item) properties (for example rectangle pen width), does anybody knows how can i do it?

Lykurg
18th May 2010, 16:43
Subclass the graphics item and reimp the paint method. There you can check the option parameter if the item is selected. If so react on it and set a pen or what you want and call the base class implementation.