Results 1 to 2 of 2

Thread: zoomer using two left clicks on touchscreen

  1. #1
    Join Date
    Jul 2012
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default zoomer using two left clicks on touchscreen

    I've got a zoomer running really nicely on my desktop, but when I load it on our instrument touchscreen it behaves horribly, because the touchscreen mouse stutters and the zoom rectangle given to the zoomer is incorrect. I figure the easiest way around this is to change the click and drag behavior of the picker to a click (top left) and click(bottom right) behavior. It seemed from the documentation like that might be possible, but I'm enough of a newbie to not really know how to go. Any ideas would be very much appreciated.

    Thanks,
    Brian

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,326
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows
    Thanked 880 Times in 828 Posts

    Default Re: zoomer using two left clicks on touchscreen

    Qt Code:
    1. zoomer->setStateMachine( new QwtPickerClickRectMachine() );
    To copy to clipboard, switch view to plain text mode 
    Uwe

Similar Threads

  1. Replies: 6
    Last Post: 16th April 2013, 17:13
  2. Simulate left and right clicks?
    By hakermania in forum Newbie
    Replies: 5
    Last Post: 8th June 2011, 12:44
  3. Replies: 2
    Last Post: 20th December 2010, 18:51
  4. Replies: 4
    Last Post: 29th August 2010, 19:16
  5. Replies: 3
    Last Post: 12th May 2010, 14:11

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.