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

There no way to set the selected item in a TreeView

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 5.6.0
    • Quick: Controls 1
    • None

    Description

      On a TreeView with SingleSelection selection mode, it's impossible to programmatically change the selected item.

      I suggest adding a setCurrentIndex(QModelIndex) method (as far as I understand, when using single selection mode the selected item is the same as the current index.

      Attachments

        Issue Links

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

          Activity

            People

              laknoll Lars Knoll
              mardy Alberto Mardegan
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes