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

Race condition with onClicked with QML CheckBox and Switch

XMLWordPrintable

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

      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)
          }
      }
      

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes