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

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

XMLWordPrintable

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

      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.

       

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            danders Dag Andersen
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes