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

Tab keeps hover style after its context menu is closed

    XMLWordPrintable

Details

    Description

      When adding a context menu to QTabWidget and assigning a hover style to a tab using StyleSheets, the tab keeps its hover style even if its context menu got closed after cursor moved away from the tab. For example, unzip the TabContextMenuExample project attached, build it and follow the steps below:

      • Right click on an unselected tab. A context menu should open.
      • While the context menu is open, move the mouse away from the tab and click on some other widget. The context menu should close.
        Expected: the tab should not have the hover style since the mouse is above another widget now.
        Actual: the tab still has the hover style.

      Note: the work around is the same as for QTBUG-13942 (but the problem seems a bit different since the latter bug only mentions right-most tab).

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            anna Anna Revinskaya
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes