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

TreeView can't select items on touch enabled systems

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.5.0, 5.7.0, 5.8.0 RC
    • Fix Version/s: 5.9.5
    • Component/s: Quick: Controls 1
    • Environment:
      android nexus 5; Windows 7, 8.1 & 10, Ubuntu 14.04.
    • Commits:
      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

              Assignee:
              srutledg Shawn Rutledge
              Reporter:
              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