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

QFrame does not always refresh hover state when QComboBox is activated

    XMLWordPrintable

    Details

    • Platform/s:
      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

          For Gerrit Dashboard: QTBUG-97951
          # Subject Branch Project Status CR V

            Activity

              People

              Assignee:
              liaqi Liang Qi
              Reporter:
              joshua.fletcher Joshua Fletcher
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There is 1 open Gerrit change