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

Add declarative API to keep track of the checked buttons in a non-exclusive ButtonGroup

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • 5.11.0
    • None
    • Quick: Controls 2
    • None
    • 960798f9117bc5aa4aa55bf868cbb0286f8e99b6

      I need to enable a "Confirm" button if there is at least one checked AbstractButton in a ListView. Currently my best option is to listen to ButtonGroup's clicked() signal and manage the number of checked items myself. It would be nice if there was a property that I could bind to instead:

      Button {
           enabled: buttonGroup.checkedButtons.length > 0
      }
      

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

            Unassigned Unassigned
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes