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

QFrame does not always refresh hover state when QComboBox is activated

XMLWordPrintable

    • Linux/X11

      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.

        1. hover-not-always-cleared.ui
          2 kB
          Joshua Fletcher
        2. hover.tar.gz
          4 kB
          Joshua Fletcher
        3. QTBUG-97951-2.tar.gz
          1.0 kB
          Liang Qi
        For Gerrit Dashboard: QTBUG-97951
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

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

                  There are no open Gerrit changes