Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QWidget Gestures Not Working
Qt 6.12 LTS is out! See what's new in the release blog

QWidget Gestures Not Working

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 963 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • webzoidW Offline
    webzoidW Offline
    webzoid
    wrote on last edited by
    #1

    I'm trying to handle gestures in my QWidgets application.

    Having followed the following examples courtesy of Qt, I am not able to receive any gesture events (I'm using Qt 5.9.1):

    http://doc.qt.io/qt-4.8/gestures-overview.html

    I've overridden the event(QEvent *) function, implementing my own gestureEvent(QGestureEvent *) function as described in the example, as well as registering the QWidget for gestures in the constructor by using the grabGesture() function for pan, pinch and swipe gestures.

    However, no gesture triggers the gestureEvent function in my widget.

    raven-worxR 1 Reply Last reply
    0
    • webzoidW webzoid

      I'm trying to handle gestures in my QWidgets application.

      Having followed the following examples courtesy of Qt, I am not able to receive any gesture events (I'm using Qt 5.9.1):

      http://doc.qt.io/qt-4.8/gestures-overview.html

      I've overridden the event(QEvent *) function, implementing my own gestureEvent(QGestureEvent *) function as described in the example, as well as registering the QWidget for gestures in the constructor by using the grabGesture() function for pan, pinch and swipe gestures.

      However, no gesture triggers the gestureEvent function in my widget.

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @webzoid
      are you sure your TouchScreen (driver) sends real touch events? Does it support multi-touch?
      Many TouchScreens only support single touch points and simulate mouse events. Which do not trigger gesture events.

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      2

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt
      • Unsolved