Results 1 to 2 of 2

Thread: combining wheel events

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 334 Times in 317 Posts

    Default Re: combining wheel events

    You can override the wheelevent and implement your own logic.
    What you can do is use a timer. Start the timer when u get a wheel event and the timer is not running.
    Stack the events / store delta value for the wheel events that are received while the timer is active, and ignore the event.
    Now when the timer gets timed out, emit a signal with the combined delta

    Hope you get the idea

  2. The following user says thank you to aamer4yu for this useful post:

    waynew (23rd January 2010)

Similar Threads

  1. QGLWidget and wheel event
    By shenakan in forum Qt Programming
    Replies: 1
    Last Post: 6th November 2009, 16:21
  2. wheel event problem
    By bhogasena in forum Qt Programming
    Replies: 1
    Last Post: 30th January 2009, 20:11
  3. Qt for iTouch-like 3D wheel music browser?
    By joanna in forum Qt Programming
    Replies: 2
    Last Post: 5th September 2008, 19:51
  4. Wheel and QTest
    By skrzypu in forum Qt Programming
    Replies: 1
    Last Post: 12th May 2008, 21:05
  5. QScrollArea wheel focus
    By bunjee in forum Qt Programming
    Replies: 3
    Last Post: 1st November 2007, 17:59

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
  •  
Qt is a trademark of The Qt Company.