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

Race condition with onClicked with QML CheckBox and Switch

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Duplicate
    • Affects Version/s: 6.2.2
    • Fix Version/s: None
    • Labels:
      None
    • Platform/s:
      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

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

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes