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

QFrame does not always refresh hover state when QComboBox is activated

    XMLWordPrintable

Details

    • Linux/X11

    Description

      A QFrame styled with a border, with a border hover style doesn't always clear the hover style if a QCombo Box on the frame is activated.  It sometimes works, but the problem scenario is easy to reproduce also.

      In my case, the frame around the combo box is small and only contains a label along with the combo box.  The styles are defined by stylesheet.  I expected this was related to QTBUG-44400, and would be solved along with that, but that appears to have been given a MacOS-specific solution (via QTBUG-78970), and this problem happens in Linux.

      A workaround is to detect when the QComboBox view list is shown and explicitly send a "Leave" event to the QFrame.

      Attachments

        1. hover.tar.gz
          4 kB
        2. hover-not-always-cleared.ui
          2 kB
        3. QTBUG-97951-2.tar.gz
          1.0 kB

        Issue Links

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

          Activity

            People

              axelspoerl Axel Spoerl
              joshua.fletcher Joshua Fletcher
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 hours
                  3h

                  Gerrit Reviews

                    There are no open Gerrit changes