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

Checkbox on Mac stays checked in the UI after setCheckState(Qt::Unchecked)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.11.1
    • None
    • Mac OS 10.13.6
      QT 5.11.1
    • macOS

    Description

      I have a simple QCheckBox in a QWidget.

      After checking it with the mouse

      checkbox->isChecked() returns true and the checkbox in the UI is checked

      If I now use checkbox->setCheckState(Qt::Unchecked) 

      now checkbox->isChecked() returns false.

      So far as expected...

      On Windows the checkbox in the UI is now unchecked 

      But on Mac in the UI the checkbox is still checked, although checkbox->isChecked() still returns false. To uncheck it I now need to click 2 times on the checkbox control to uncheck , as if it was unchecked. (looks like the checkbox behaves normal, but shows a wrong state)

      Only if the application is no longer active (focus on another app) the checkbox gets unchecked

      I can reproduce this on 3 different Macs all with the actual OS Version (10.13.6) 

       

       

       

       

      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
            lalula Michael Erhard
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes