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

ButtonGroup needs a currentIndex property

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • None
    • Quick: Controls 2
    • None

    Description

      TabBar's currentIndex property is convenient for bindings and such. But a mutually-exclusive set of buttons is almost the same thing, and it should be similarly easy to use.

      It came up in https://codereview.qt-project.org/c/qt/qtdeclarative/+/368209/2 : we need buttons to choose the "tool" that controls what the mouse will do when you click or drag on empty space on the drawing canvas. An integer can be used to look up something in an array of tool-related things, for example (although that's not the only way to do it), in a switch statement, etc.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            srutledg Shawn Rutledge
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes