Results 1 to 2 of 2

Thread: QScrollArea mouse events is taken by scroll bars

  1. #1
    Join Date
    Nov 2007
    Posts
    291
    Thanks
    85
    Thanked 1 Time in 1 Post

    Question QScrollArea mouse events is taken by scroll bars

    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

  2. #2
    Join Date
    Nov 2007
    Posts
    291
    Thanks
    85
    Thanked 1 Time in 1 Post

    Default Re: QScrollArea mouse events is taken by scroll bars

    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

Similar Threads

  1. QScrollArea's Scroll Bars
    By ToddAtWSU in forum Qt Programming
    Replies: 5
    Last Post: 19th September 2006, 13:27
  2. mouse moving don't produce mouse events
    By coralbird in forum Qt Programming
    Replies: 1
    Last Post: 13th September 2006, 06:13
  3. QStackerWidget and mouse events
    By high_flyer in forum Qt Programming
    Replies: 3
    Last Post: 25th April 2006, 19:25

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.