Open 3D Engine AzQtComponents API Reference  24.09
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AzQtComponents::CheckBox Class Reference

#include <CheckBox.h>

Classes

struct  Config
 Style configuration for the CheckBox class. More...
 

Static Public Member Functions

static void applyToggleSwitchStyle (QCheckBox *checkBox)
 Applies the "ToggleSwitch" style class to a QCheckBox.
 
static void applyExpanderStyle (QCheckBox *checkBox)
 Applies the "Expander" style class to a QCheckBox.
 
static void setVisibilityMode (QAbstractItemView *view, bool enabled)
 Applies the "Visibility" style class to checkable items in an item view.
 
static Config loadConfig (QSettings &settings)
 
static Config defaultConfig ()
 Gets the default CheckBox style configuration.
 

Friends

class Style
 

Detailed Description

Class to handle styling and painting of Checkboxes, including ToggleSwitches. Instantiate a regular QCheckbox, then call this class to change style as needed. There are currently two built-in styles:

  • Plain checkboxes
  • Toggle Switches

Member Function Documentation

◆ loadConfig()

static Config AzQtComponents::CheckBox::loadConfig ( QSettings &  settings)
static

Sets the CheckBox style configuration.

Parameters
settingsThe settings object to load the configuration from.
Returns
The new configuration of the CheckBox.

The documentation for this class was generated from the following file: