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

Make basic RadioButton's size easily configurable

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 5.15
    • Quick: Controls 2
    • None
    • All

    Description

      As documented in https://forum.qt.io/topic/80402/change-size-of-radiobutton-qt-quick-controls-2, changing the indicator height and width leads to an inappropriately-sized control when the button is checked.

      When looking at the `basic/RadioButton.qml` button, https://github.com/qt/qtquickcontrols2/blob/dev/src/quickcontrols2/basic/RadioButton.qml#L69, it seems that the width and height of the pressed button are hardcoded. 

      If the child Rectangle width and height were set to a ratio, for instance `width: parent.width*5/7` and `height: parent.height * 5/7`, then this would not modify the default appearance, but it would allow for simple control via `indicator.width` and `indicator.height`.

      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
            kubark42_ Kenz Dale
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes