Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QML detect touches and touch gestures.
Forum Updated to NodeBB v4.3 + New Features

QML detect touches and touch gestures.

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 281 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.
  • M Offline
    M Offline
    MartinD
    wrote on last edited by
    #1

    Hi,
    I have QQuickPaintedItem in my qml file. I want to detect touches and touch gestures.

    I can listen to touches using mouse events: mousePressEvent(), mouseReleaseEvent(), mouseMoveEvent() and mouseDoubleClickEvent() of QQuickItem.

    For pinch I placed PinchArea over QQuickPaintedItem. However then I can detect pinch gestures but mouse (touch) events are not delivered.

    I also tried to place MouseArea on top of QQuickPaintedItem together with PinchArea but then PinchArea doesn't work even if preventStealing of MouseArea is set to true.

    If I place PinchArea on top of QQuickPaintedItem wogether with MouseArea then pinch gestures are detected but then only OnPOsitionChanged of MouseArea are detected - no OnPressed and onReleased events detected.

    Can you please advise how to detect both touches and touch gestures?

    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