PDA

View Full Version : Disable QGraphicsTextItem borders



RyogaH
28th July 2010, 13:20
This seems like a very easy-to-solve question, but it seems it's harder when you start actually trying to implement it.

Is there a way to disable the QGraphicsTextItem borders, when the QGraphicsTextItem is focused (and/or selected)?

Thanks in advance.
- Ryo

aamer4yu
28th July 2010, 14:06
Override the paint function of the QGraphicsTextItem and in options, negate the focused/selected flag and call the base class paint function with new options.