PDA

View Full Version : focus frame



panduro
20th June 2008, 07:18
Hi.

I’m using a subclass of QWindowsStyle to draw my focus frame, this it done in ‘drawPrimitive’ but now I want the focus frame to slowly fate for black to green using a timer, but can I do this in my style class or do I have to subclass QPushButton, and rewrite the paint event.

Thanks
Panduro - DK.

jpn
23rd June 2008, 09:57
You could for example take a look at QPlastiqueStyle sources. It uses timers and event filters to achieve the "busy" animation of progress bars.