Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-122659

[Reg 6.6.1 → 6.6.2] Drag cannot be started anymore

    XMLWordPrintable

Details

    Description

      The following minimum drag start example works with 6.6.1 and the used mechanism stopped working for 6.6.2+:

      import QtQuick
      import QtQuick.Window
      
      Window {
          id: win
          width: 640
          height: 480
          visible: true
          title: 'sandbox'
      
          DragHandler {
              id: dragHandler
              target: draggable
              enabled: false
          }
      
          Rectangle {
              id: draggable
              width: 50
              height: 50
              radius: 25
              color: '#ccc'
              x: win.width  / 2 - draggable.width  / 2
              y: win.height / 2 - draggable.height / 2
              border.width: dragHandler.active ? 3 : 1
              border.color: '#333'
      
              TapHandler {
                  id: tapHandler
                  longPressThreshold: 0
                  dragThreshold: 0
                  gesturePolicy: TapHandler.WithinBounds
      
                  onLongPressed: () => {
                                     dragHandler.enabled = true
                                 }
              }
          }
      }
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            oulu_hillbilly Sami Varanka
            cajus Cajus Pollmeier
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes