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

QML Treeview does not work properly on multitouch

    XMLWordPrintable

Details

    • Windows

    Description

      Consider this simple code

      import QtQuick
      import QtQuick.Controls
      
      Window {
         id: window
      
         width: 1024
         height: 720
      
         visible: true
         title: qsTr("Hello World")
      
         TreeView {
            anchors.fill: parent
            model: treeModel
      
            selectionModel: ItemSelectionModel {
               onCurrentIndexChanged: console.log(currentIndex)
            }
      
            delegate: TreeViewDelegate {
               highlighted: current
            }
         }
      }
      

      It works like a charm. When a row is clicked, the selection is correctly highlighted. However, if tested in a Windows 10 multitouch screen the selection does not works anymore. Switching from multitouch to single touch in the OS settings, make the sample works again because the touch events are dealt as mouse events.

      Attached a complete project

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            moia Maurizio Ingrassia
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes