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

Race condition with onClicked with QML CheckBox and Switch

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P1: Critical
    • None
    • 6.2.2
    • None
    • Linux/X11

    Description

      With CheckBox and Switch, when clicking too fast, onClicked ends up raising inconsistent state with the UI. See attached video.

      The issue doesn't happen with onPressed.

      Reproducible with qml6 race.qml:

      import QtQuick
      import QtQuick.Controls
      
      Item {
          CheckBox {
              onClicked: console.log(checked)
          }
      }
      

      Attachments

        Issue Links

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              ux U X
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: