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

QML - DropArea onEntered does not fire if height is below a certain value

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P1: Critical P1: Critical
    • None
    • 6.8.3
    • None
    • Edition Windows 11 Pro for Workstations
      Version 24H2
      Installed on ‎2025-‎06-‎19
      OS build 26100.4351
      Experience Windows Feature Experience Pack 1000.26100.107.0
    • Windows

      I've found that the QML Drag and Drop stops functioning when the dragged component is below a certain height.

      Steps to reproduce:

      • Open the QML Dynamic View Ordering Tutorial 3
      • Compile and run the application. Confirm that you are able to drag and drop to re-order the entries.
      • Open dynamicview.qml, and comment out lines 85, 86, and 87 to reduce the Column entity to a single line of text like so:
        Column {
            id: column
            anchors {
                fill: parent
                margins: 2
            }
        
            Text { text: qsTr('Name: ') + dragArea.name }
            // Text { text: qsTr('Type: ') + dragArea.type }
            // Text { text: qsTr('Age: ') + dragArea.age }
            // Text { text: qsTr('Size: ') + dragArea.size }
        }}}
        
      • Recompile and run. Now, when dragging the items, they no longer change position. Observe that the onEntered() function in DropArea is not called.

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            duncanb Duncan Bristow
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes