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

Switch: using exclusiveGroup doesn't work

    XMLWordPrintable

Details

    Description

      Using the test case below:

      • Click the 2 Switch button back and forth, the binding from ExclusiveGroup works
      • Click 2 times the same Switch button, the binding does not work. Both can have the same state at the same time.

      Test case:

      import QtQuick 2.1
      import QtQuick.Controls 1.1
      
      ApplicationWindow {
          visible: true
          width: 360
          height: 360
      
          Column {
              spacing: 20
              anchors.centerIn: parent
              ExclusiveGroup { id: group }
              Switch {
                  id: cb
                  exclusiveGroup: group
              }
              Switch {
                  checked: true
                  exclusiveGroup: group
              }
          }
      }
      

      Attachments

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

        Activity

          People

            bachewii Jens
            carochao Caroline Chao (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes