Qt 5.13 | Qt Quick Controls 1 | QML Types | RadioButtonStyle QML Type

Qt 5.13.2 Reference Documentation

# RadioButtonStyle QML Type

Provides custom styling for RadioButton. More...

Import Statement: | import QtQuick.Controls.Styles 1.4
Since: | Qt 5.1

- List of all members, including inherited members

## Properties

- background : Component
- control : RadioButton
- indicator : Component
- label : Component
- spacing : int

## Detailed Description

Example:

      RadioButton {
          text: "Radio Button"
          style: RadioButtonStyle {
              indicator: Rectangle {
                      implicitWidth: 16
                      implicitHeight: 16
                      radius: 9
                      border.color: control.activeFocus ? "darkblue" : "gray"
                      border.width: 1
                      Rectangle {
                          anchors.fill: parent
                          visible: control.checked
                          color: "#555"
                          radius: 9
                          anchors.margins: 4
                      }
              }
          }
       }

## Property Documentation

background : Component

The background under indicator and label.

[read-only] control : RadioButton

The RadioButton this style is attached to.

indicator : Component

This defines the indicator button.

label : Component

This defines the text label.

spacing : int

The spacing between indicator and label.