PDA

View Full Version : Mouse events in QStyle



tuanfithou
25th October 2007, 03:35
How do I process event mouse in class QStyle ?
Many thanhs.

wysota
25th October 2007, 06:27
Why would you want to process mouse events in a QStyle? If you want to change the looks of a widget when mouse pointer hovers over it, enable the hover attribute for the widget within your style and it will receive paint events when mouse is hovering. Then you can detect that in your style by looking at the style option and act accordingly.