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

Binding to CheckBox::checked does not work as expected

    XMLWordPrintable

Details

    • 3adb18503a865e0bb826cb1b5be059572bb96594

    Description

      Run the following test case and toggle the enabled checkbox twice. The disabled checkbox is supposed to follow the checked status, but the binding breaks after the first change.

      import QtQuick 2.1
      import QtQuick.Controls 1.0
      
      Item {
          width: 360
          height: 360
      
          Column {
              spacing: 20
              anchors.centerIn: parent
      
              CheckBox {
                  id: cb
                  text: "Enabled"
              }
      
              CheckBox {
                  checked: cb.checked // breaks after the first change
                  enabled: false
                  text: "Disabled"
              }
          }
      }
      

      Attachments

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

        Activity

          People

            bachewii Jens
            jpnurmi J-P Nurmi
            Votes:
            4 Vote for this issue
            Watchers:
            13 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes