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. Drag stopped working.
Qt 6.11 is out! See what's new in the release blog

Drag stopped working.

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

    hi all,

    i am using a touch monitor which supports both touch and mouse inputs. i have a rectangle item which is a menu, which can be dragged using mouse or hand(touch).
    Dragging works fine with both mouse and hand(touch )
    But when i drag with mouse , while dragging if i touch the menu with hand(touch) suddenly dragging stops. and from that moment we can't drag menu anymore.
    i get an error saying: touchpoint pressed without previous release event qt

    does anyone know how to resolve this.
    here is samle code:

    Rectangle  {
    id: vsMenu
    
    property bool dragActive: clickCatcher.drag.active
    onDragActiveChanged: resetTimeout()
    
    MouseArea {
        id: clickCatcher
    
        onVisibleChanged: console.log(visible)
        anchors{
            top: parent.top
            left: parent.left
            right: parent.right
        }
        height: 50
    
        drag.target: vsMenu
        drag.axis: Drag.XAndYAxis
        drag.minimumX: 0
        drag.maximumX: 1200
        drag.minimumY: 100
        drag.maximumY: 800
        onPressed: {
        resetTimeout()
        //do something 
        }
    }
    
    1 Reply Last reply
    0
    • A Offline
      A Offline
      AYYAPPA
      wrote on last edited by
      #2

      help! anyone ?

      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