Results 1 to 8 of 8

Thread: Touch events not recognized for trackpad

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2011
    Posts
    354
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Windows
    Thanks
    17
    Thanked 27 Times in 24 Posts

    Default Re: Touch events not recognized for trackpad

    Gestures are enabled. As I told before, I am using pinch zooming in the web browser without any problems, two, three and four finger gestures also work fine. The issue seems to occur in Qt applications only.

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,349
    Qt products
    Qt5
    Platforms
    Windows
    Thanks
    318
    Thanked 872 Times in 859 Posts

    Default Re: Touch events not recognized for trackpad


  3. #3
    Join Date
    Feb 2011
    Posts
    354
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Windows
    Thanks
    17
    Thanked 27 Times in 24 Posts

    Default Re: Touch events not recognized for trackpad

    Umh... but why Qt samples do not work?

  4. #4
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,349
    Qt products
    Qt5
    Platforms
    Windows
    Thanks
    318
    Thanked 872 Times in 859 Posts

    Default Re: Touch events not recognized for trackpad

    Our posts are bumping into each other.

    The examples may not implement gesture grabbing as mentioned above.

  5. #5
    Join Date
    Feb 2011
    Posts
    354
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Windows
    Thanks
    17
    Thanked 27 Times in 24 Posts

    Default Re: Touch events not recognized for trackpad

    Thanks, i will check QGestureRecognizer.

  6. #6
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,349
    Qt products
    Qt5
    Platforms
    Windows
    Thanks
    318
    Thanked 872 Times in 859 Posts

    Default Re: Touch events not recognized for trackpad

    Reading deeper into the docs, QGestureRecognizer is needed only if you are implementing custom gestures. QWidget::grabGesture() should be all you need for standard gesture support.

    Try modifying one of the Qt Graphics / View examples to add grabGesture support to the view widget, see what happens. Or modify a dialog-based example to add grabGesture to the dialog class. You should then be able to tap buttons, I think. I don't have a gesture input device, so I can't try it.

Similar Threads

  1. Capturing Touch Screen events in MainWindow
    By lightydo in forum Qt Programming
    Replies: 1
    Last Post: 30th September 2013, 15:23
  2. Replies: 1
    Last Post: 18th July 2013, 13:23
  3. Replies: 0
    Last Post: 18th November 2010, 16:48
  4. QGraphicsProxyWidget and touch events
    By johnsoga in forum Qt Programming
    Replies: 0
    Last Post: 21st February 2010, 06:53
  5. How to Implement the Touch Screen Events?
    By rchaitanya in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 25th December 2008, 09:44

Tags for this Thread

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.