O3DE UI Radio Button Styles

Use radio buttons to enable users to select from two or more options, when users must select exactly one choice. Choosing a radio button deselects the previously selected button.

component radio button style

Usage guidelines

Follow these guidelines as you design your UI with radio buttons:

  1. Use radio buttons when you have two or more mutually exclusive options.

  2. Ensure that clicking or tapping the label selects the radio button.

  3. One radio button should always be selected by default.

  4. Keep radio buttons from the same radio group in close proximity.

Avoid these design choices when using radio buttons:

  • Don’t order radio buttons horizontally.
  • Don’t trigger an event upon selection of a radio button, such as spawning a popover, popup, new page, or new window.

Basic radio button

component radio button basic

Set up and control radio buttons in Qt Designer or in code.

Radio buttons that belong to the same parent will automatically be part of an exclusive group. You can create your own groups too, using a QButtonGroup.

Example

#include <QRadioButton>
#include <QButtonGroup>

QRadioButton* radioButton1 = new QRadioButton(parent);
QRadioButton* radioButton2 = new QRadioButton(parent);

// Create a mutually exclusive group.
QButtonGroup* buttonGroup = new QButtonGroup(this);
buttonGroup->addButton(radioButton1);
buttonGroup->addButton(radioButton2);

// To set a radio button to the selected state:
radioButton1->setChecked(true);

// To disable a radio button:
radioButton1->setEnabled(false);

C++ API reference

For details on the radio button API, see the following topic in the O3DE UI Extensions C++ API Reference:

Relevant Qt documentation includes the following topics:


Copyright © 2026 DawnEngine. All rights reserved.

DawnEngine is a commercial 3D engine distributed under the DawnEngine end-user license agreement. Engine binaries and source are proprietary and are not covered by the licenses below.

Documentation only: the prose and templates on this site are a derivative work of Open 3D Engine (O3DE) documentation by the O3DE Contributors, used under CC BY 4.0 (documentation content), Apache 2.0 (site code), and the MIT license (inline code samples).

The open-source 3D engine that DawnEngine is built on top of is Open 3D Engine . DawnEngine is not affiliated with, endorsed by, or sponsored by The Linux Foundation or the O3DE project. “O3DE” and “Open 3D Engine” are trademarks of The Linux Foundation.