Results 1 to 2 of 2

Thread: Controlling inertial scroll (Mac)

  1. #1
    Join Date
    Mar 2009
    Posts
    39
    Thanks
    14
    Qt products
    Qt4
    Platforms
    Windows

    Default Controlling inertial scroll (Mac)

    Hi all,

    Anyone knows if there's a way to know when the QWheelEvent in a mac corresponts to simulated "inertial scrolling"? If you want to use the mouse wheel event for something other than scrolling with no inertia, for example rotating an image, you get a stream of events and I can not guess a way to deduct they are real or simulated inertial.

    Intercepting TouchEvents may be a solution but you would have to figure out all the behaviors depending on types of mice (for example multitouch with two fingers, magic mouse with one a other possible implementations) and probably leaving gaps for other devices or configurations.

    thanks!

  2. #2
    Join Date
    Mar 2009
    Posts
    39
    Thanks
    14
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Controlling inertial scroll (Mac)

    As a followup, I've found this OsX doc that gives a programatic way to disable intertial scrolling for the app, may be of use to someone:
    http://developer.apple.com/library/m...se/_index.html

    Qt Code:
    1. NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
    2.  
    3. NSDictionary *appDefaults = [NSDictionary dictionaryWithObject:@"NO"
    4.  
    5. forKey:@"AppleMomentumScrollSupported"];
    6.  
    7. [defaults registerDefaults:appDefaults];
    To copy to clipboard, switch view to plain text mode 

    Is it possible to implement this on a qt project?.... or alternatively could that setting be effective if placed on the info.plist of the app?

Similar Threads

  1. GDB: Failed to set controlling terminal
    By dbrich in forum Installation and Deployment
    Replies: 1
    Last Post: 1st October 2010, 14:18
  2. Controlling QCompleter's pop-up
    By dthh in forum Qt Programming
    Replies: 1
    Last Post: 27th August 2010, 01:19
  3. QDial disabling key scroll and mouse wheel scroll
    By ldg20 in forum Qt Programming
    Replies: 2
    Last Post: 2nd June 2010, 23:05
  4. Replies: 0
    Last Post: 28th December 2009, 12:24
  5. Replies: 6
    Last Post: 14th April 2006, 05:39

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.