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

Expand/collapse icons don't return to normal when hovering out of them if selection behavior is SelectItems

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.15.1
    • Fix Version/s: None
    • Component/s: Widgets: Layout
    • Labels:
      None
    • Platform/s:
      Windows

      Description

      When a QTreeView has the selection behavior set to QAbstractItemView::SelectItems, hovering in over the expand/collapse icons would change the color correctly but hovering out does not return them to the default color.

      If the behavior is QAbstractItemView::SelectRows hovering works as expected.

      This has been reproduced on Windows.

      How to reproduce:

      Using Qt Creator load the "Dir View Example".  Then just below QTreeView tree definition add:

      tree.setSelectionBehavior(QAbstractItemView::SelectItems);

      Run the example and hover over the icons.   It should look like the attached image.

       

        Attachments

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

          Activity

            People

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            scorpius Naikel Aparicio
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes