Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QPanGesture on Android
Forum Updated to NodeBB v4.3 + New Features

QPanGesture on Android

Scheduled Pinned Locked Moved Mobile and Embedded
qpangesturegestureandroidqgraphicsview
1 Posts 1 Posters 852 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.
  • G Offline
    G Offline
    GuillaumeG
    wrote on last edited by
    #1

    Hello,

    I search to zoom and move with a QGraphicsView on Android application.
    The QPinchGesture (with two fingers) work and I can zoom, but I have problem with the QPanGesture (I want to move with one finger).

    QPanGesture seems to have two finger to work, so I can't use it. The event is fired at the end of a QPinchGesture and the scene is not moving correctly.

    I try to use QTouchEvent to move the scene, but the events are also fired when I do a pinch gesture... and I can not make difference between QPinchGesture and a real touchevent to move the scene.

    I can try to implement a new QGestureRecognizer but it's a base fonctionality I'm surprised is not already in Qt.

    Does anyone have a simple way to do this?

    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 Extensions
    • Unsolved