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

QToolbutton stays in hovered state even when it's not hovered over.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.5.5
    • GUI: Look'n'Feel
    • None
    • macOS

    Description

      I have a QToolbutton in a vertical layout, along with a QCalenderWidget (we can have any other widget(s)).

      The purpose of the tool button is to hide all the other components in the layout when it's checked. And when it's unchecked, every other component should also be visible.

      I have different icon for the hover state of the button, and otherwise a different icon.

      The problem is when I click on the button (and the button goes to checked state), the button keeps staying in hovered state even though it's not getting hovered over. It only returns to default state, when I move my mouse.

      See the attached video, for reference.

      Screen Recording 2024-09-01 at 10.53.41 PM.mov

      I am also attaching the icons and code.

      sample.py

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            sohamkanji Soham Kanji
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes