KanoopGuiQt 1.3.0
Qt GUI utility library
Loading...
Searching...
No Matches
ComboBox Class Reference

QComboBox subclass with bold font helpers and keyboard-commit signals. More...

#include <combobox.h>

+ Inheritance diagram for ComboBox:
+ Collaboration diagram for ComboBox:

Signals

void accept ()
 Emitted when the user presses Enter/Return to accept the current value.
 
void lostFocus ()
 Emitted when the widget loses keyboard focus.
 

Public Member Functions

 ComboBox (QWidget *parent=nullptr)
 Construct with an optional parent.
 
void setBold (bool bold)
 Set the font weight of all items in the combo box.
 
void setRowBold (int row, bool bold)
 Set the font weight of a specific row.
 

Detailed Description

QComboBox subclass with bold font helpers and keyboard-commit signals.

ComboBox emits accept() when the user presses Enter/Return, and lostFocus() when the widget loses keyboard focus. Individual rows or the entire widget can have their font weight changed to bold.

Definition at line 14 of file combobox.h.

Constructor & Destructor Documentation

◆ ComboBox()

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

Construct with an optional parent.

Parameters
parentOptional QWidget parent

Member Function Documentation

◆ setBold()

void ComboBox::setBold ( bool  bold)

Set the font weight of all items in the combo box.

Parameters
boldtrue for bold, false for normal weight

◆ setRowBold()

void ComboBox::setRowBold ( int  row,
bool  bold 
)

Set the font weight of a specific row.

Parameters
rowZero-based row index
boldtrue for bold, false for normal weight

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