AdeleGoldberg
AdeleGoldberg

Reputation: 1339

How to control the size of the default RadioButton in QML?

How do I reduce or control the size of the RadioButtons below in a ColumnLayout in the simplest possible way?

ColumnLayout{
    RadioButton {
        text: "Option1"
        checked: true
    }
    RadioButton {
        text: "Option2"
    }
}

All the examples available, lead me into making a complex styled RadioButton. I just want the default one and simply reduce the size.

I am using Qt 5.12.5.

Upvotes: 1

Views: 1080

Answers (1)

mip
mip

Reputation: 8713

Every item has scale property.

    ColumnLayout {
        scale: 0.75

        RadioButton {
            text: "Option1"
            checked: true
            scale: 0.75
        }
        RadioButton {
            text: "Option2"
        }
    }

Upvotes: 3

Related Questions