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

QTreeView::selectedIndexes() returns empty list if column 0 is hidden

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.12.0
    • Widgets: Itemviews
    • None
    • Linux/X11

    Description

      From QTreeView::SelectedIndexes():

      while (index.isValid() && !isIndexHidden(index))
           index = index.parent();

      Often, index.parent() returns a parent with column == 0, so if column 0 is hidden an emty list is returned.

       

      Attachments

        Issue Links

          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
              danders Dag Andersen
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes