PDA

View Full Version : QScrollArea mouse events is taken by scroll bars



babu198649
26th November 2007, 10:14
hi
i have subclassed a QScrollArea to receive mouse wheel events.
qscrollarea has qlabel as its child.

now whenevever mouse wheel events are occured ,the scroll bar receives the mouse wheel events first and when the scroll bars reach maximum limits ,only then the qscrollarea mousewheel event(subclassed function) gets executed.


how to stop receiving mouse wheel events by qscrollbar

babu198649
26th November 2007, 10:41
hi friends
i got the error. the event first reaches the qscrollarea mousewheel event(subclassed function) and then the events gets propagated to scrollbars. so accept the event in the subclassed function stops the event propagation