View Full Version : Mouse events in QStyle

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

25th October 2007, 07: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.