I override the paint() method of a QGraphicsWidget subclass with a background color and some text label in the middle. For every second I use a timer to change the background color but keep the same text, or keep the same bg color but change the text. Is there a way for me to do this without having to repaint both of the components, i.e. only text or background color but not both? I'm using QtEmbedded 4.5.
I guess one way would be having 2 separate widgets but since their space overlap each other, it's just cleaner to use one single widget.
All suggestions are appreciated.
Thanks.
Bookmarks