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

There no way to set the selected item in a TreeView

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes