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

QListWidget doesn't show items as unhovered, when the mouse leaves the widget with an open context menu and the menu is closed (bug probably in QAbstractItemView)

    XMLWordPrintable

Details

    Description

      See attached pyqt test case, bug also occurs in C++ programs.

      First, notice there are different colors in QListWidget for (a) a selected item and (b) a selected and hovered item, the latter is slightly lighter.

      Now, right-click on an item in the list to open the context menu, move the mouse out of the window and click there to close the context menu again. The color for the item you originally right-clicked stays at "selected and hovered". Only when you bring the mouse back into the widget, the color changes to "selected and NOT hovered".

      Expected behaviour: Set the color to "selected and NOT hovered" when the mouse leaves the clicked ListItem or, at the latest, when the context menu is closed.

      The same issue occurs for QTreeWidget, so I suppose it is in QAbstractItemView or above.

      The original bug occurs in Dolphin's places panel. The selection behaviour is different there, so the missing "unhovering" is very well visible there. https://bugs.kde.org/show_bug.cgi?id=182914

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            sdoerner Sebastian Dörner
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes