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

Cannot implement dragging in QML Treeview

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: P2: Important P2: Important
    • None
    • 5.6.0
    • Quick: Controls 1
    • None

      The MouseArea used inside the QML TreeView (as __mouseArea hidden property) has the preventStealing property set to !Settings.hasTouchScreen. On a desktop computer with no touchscreen, this makes it impossible to wrap the TreeView in a MouseArea which would implement dragging.

      I think that either !Settings.hasTouchScreen is not the correct way to initialized this property, or that TreeView should expose a property to override its behaviour.

        1. test.qml
          0.6 kB
          Alberto Mardegan
        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
            mardy Alberto Mardegan
            Votes:
            9 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes