QCheckboxCombo Class Reference

QCheckboxCombo is a combobox widget that contains items with checkboxes. More...

Detailed Description

QCheckboxCombo is a combobox widget that contains items with checkboxes.

User can select proper items by checking corresponding checkboxes. Resulting text will contain list of selected items separated by delimiter (", " by default)

Signals

void selectionChanged (const QString &text)
 
void itemToggled (int index, bool checked)
 

Public Member Functions

 QCheckboxCombo (QWidget *parent=nullptr)
 
bool eventFilter (QObject *watched, QEvent *event)
 
void hidePopup ()
 
void showPopup ()
 
void addItem (const QString &text, bool checked=true)
 

Constructor & Destructor Documentation

◆ QCheckboxCombo()

QCheckboxCombo::QCheckboxCombo ( QWidget *  parent = nullptr)
explicit

Member Function Documentation

◆ eventFilter()

bool QCheckboxCombo::eventFilter ( QObject *  watched,
QEvent *  event 
)

◆ hidePopup()

void QCheckboxCombo::hidePopup ( )

◆ showPopup()

void QCheckboxCombo::showPopup ( )

◆ addItem()

void QCheckboxCombo::addItem ( const QString &  text,
bool  checked = true 
)

◆ selectionChanged

void QCheckboxCombo::selectionChanged ( const QString &  text)
signal

◆ itemToggled

void QCheckboxCombo::itemToggled ( int  index,
bool  checked 
)
signal