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

Details

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

    Description

      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
      }
      

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes