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

TreeView can't select items on touch enabled systems

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.9.5
    • 5.5.0, 5.7.0, 5.8.0 RC
    • Quick: Controls 1
    • android nexus 5; Windows 7, 8.1 & 10, Ubuntu 14.04.
    • a60d3e0df7085d077aaed93d9243cf3d57b59464

    Description

      qml treeview can't select item by click on android.

      when i slice down or up it's ok, but It is difficult to select i wanted.

      use following code to solve but it's Not very good

          selection: ItemSelectionModel {
              id: selModel
                  model: treeView.model
             } 
        onClicked: {
      
              selModel.clearCurrentIndex();
              selModel.setCurrentIndex(index, 0x0002 | 0x0010);
          }
      

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-47243
          # Subject Branch Project Status CR V

          Activity

            People

              srutledg Shawn Rutledge
              awfan fanjunwu
              Votes:
              19 Vote for this issue
              Watchers:
              27 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes