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

QPushButton remains in hover state after menu closed

    XMLWordPrintable

Details

    • macOS

    Description

      QPushButton remains in the hovered state after the menu has closed by mouse click outside of menu and button areas.

      Steps to reproduce :
      Run qtbug44400.zip which uses attached main.cpp
      The button's background color is red (default) and white (hovered)
      Click on button, then click on parent widget or the menu.

      Expected result
      Button's background color becomes red

      Actual result
      Button background remains white (i.e. hovered state)

      This problem doesn't seem to occur on Windows

      Attachments

        1. main.cpp
          0.6 kB
        2. qtbug44400.zip
          1 kB

        Issue Links

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

          Activity

            People

              vhilshei Volker Hilsheimer
              amd00 Andrey Dudakov
              Veli-Pekka Heinonen Veli-Pekka Heinonen
              Votes:
              3 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes