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::ComboBox Class Reference

Adds functionality to ComboBox controls by offering configuration, styling and validation options. More...

#include <ComboBox.h>

Classes

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

Static Public Member Functions

static Config loadConfig (QSettings &settings)
 
static Config defaultConfig ()
 Gets the default ComboBox style configuration.
 
static void setValidator (QComboBox *cb, QValidator *validator)
 
static void setError (QComboBox *cb, bool error)
 Forces the ComboBox to set its internal error state to "error".
 
static void addCustomCheckStateStyle (QComboBox *cb)
 

Friends

class Style
 

Detailed Description

Adds functionality to ComboBox controls by offering configuration, styling and validation options.

Member Function Documentation

◆ addCustomCheckStateStyle()

static void AzQtComponents::ComboBox::addCustomCheckStateStyle ( QComboBox *  cb)
static

Applies the CustomCheckState styling to a QCheckBox. With this style applied, the checkmark will be defined by the model, and won't be automatically checked for the current item. Same as AzQtComponents::Style::addClass(comboBox, "CustomCheckState")

◆ loadConfig()

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

Sets the ComboBox style configuration.

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

◆ setValidator()

static void AzQtComponents::ComboBox::setValidator ( QComboBox *  cb,
QValidator *  validator 
)
static

Adds a validator to the ComboBox. This function binds a validator to the control itself instead of the underlying LineEdit, meaning it won't be deleted until the QComboBox itself is destroyed.


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