Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. different position in TabAndHoldGesture and TabGesture Class
Qt 6.12 LTS is out! See what's new in the release blog

different position in TabAndHoldGesture and TabGesture Class

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 1 Posters 374 Views
  • 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.
  • S Offline
    S Offline
    sh033
    wrote on last edited by
    #1

    Hi,
    I have played with the QGestureEvent, and I found the position : function in the TabAndHoldGesture and TabGesture Class is different for the same position on the screen.
    Can anyone please help me to understand this

    Thank you all

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sh033
      wrote on last edited by
      #2

      I think i found it.
      In the source code qstandardgesture.ccp, the position of the TabGesture in line 442:

      d->position = ev->touchPoints().at(0).pos();
      

      the position of the TabAndHoldGesture in line 538:

      d->position = ev->touchPoints().at(0).startScreenPos();
      

      The TabAndHoldGesture use the ScreenPos() and the TabGesture the pos() function of the QTouchEvent Class.
      I think this is a bug or not ??

      1 Reply Last reply
      0

      • Login

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