Enhanced group box widget.
More...
#include <QtxGroupBox.h>
Enhanced group box widget.
The QtxGroupBox class allows inserting custom widgets in the group box title. Use insertTitleWidget() method to add custom widget to the title and removeTitleWidget() to remove it.
◆ QtxGroupBox() [1/2]
QtxGroupBox::QtxGroupBox |
( |
QWidget * |
parent = 0 | ) |
|
◆ QtxGroupBox() [2/2]
QtxGroupBox::QtxGroupBox |
( |
const QString & |
title, |
|
|
QWidget * |
parent = 0 |
|
) |
| |
Constructor.
- Parameters
-
title | group box title text |
parent | parent widget |
References initialize().
◆ ~QtxGroupBox()
QtxGroupBox::~QtxGroupBox |
( |
| ) |
|
|
virtual |
◆ childEvent()
void QtxGroupBox::childEvent |
( |
QChildEvent * |
e | ) |
|
|
protectedvirtual |
Customize child event.
- Parameters
-
◆ customEvent()
void QtxGroupBox::customEvent |
( |
QEvent * |
| ) |
|
|
protectedvirtual |
◆ eventFilter()
Custom event filter.
- Parameters
-
- Returns
true
if event processing should be stopped
References myContainer.
◆ expandTo()
QSize QtxGroupBox::expandTo |
( |
const QSize & |
sz | ) |
const |
|
private |
◆ initialize()
void QtxGroupBox::initialize |
( |
| ) |
|
|
private |
Initialize the group box.
Creates horizontal box as container for title widgets.
References myContainer, and updateTitle().
◆ insertTitleWidget()
void QtxGroupBox::insertTitleWidget |
( |
QWidget * |
wid | ) |
|
|
virtual |
Add widget to the group box title.
- Parameters
-
wid | widget being added to the title |
References myContainer, and updateTitle().
◆ minimumSizeHint()
QSize QtxGroupBox::minimumSizeHint |
( |
| ) |
const |
|
virtual |
Get recommended minimum size for the widget.
- Returns
- recommended minimum size for the widget
References expandTo().
◆ removeTitleWidget()
void QtxGroupBox::removeTitleWidget |
( |
QWidget * |
wid | ) |
|
|
virtual |
Remove widget from the group box title.
- Parameters
-
wid | widget to be removed from the title |
References myContainer, and updateTitle().
◆ resizeEvent()
void QtxGroupBox::resizeEvent |
( |
QResizeEvent * |
e | ) |
|
|
protectedvirtual |
◆ setInsideMargin()
void QtxGroupBox::setInsideMargin |
( |
const int |
m | ) |
|
|
private |
Set group box's inside margin size.
- Parameters
-
◆ setVisible
void QtxGroupBox::setVisible |
( |
bool |
on | ) |
|
|
virtualslot |
Show/hide group box.
- Parameters
-
on | if true , show group box, otherwise, hide it |
References updateTitle().
◆ setWidget()
void QtxGroupBox::setWidget |
( |
QWidget * |
wid | ) |
|
Set central widget to the group box.
- Parameters
-
wid | widget being added to the group box |
References widget().
◆ sizeHint()
QSize QtxGroupBox::sizeHint |
( |
| ) |
const |
|
virtual |
Get recommended size for the widget.
- Returns
- recommended size for the widget
References expandTo().
◆ titleSize()
QSize QtxGroupBox::titleSize |
( |
| ) |
const |
|
private |
Get the group box title size.
- Returns
- title size
◆ updateTitle()
void QtxGroupBox::updateTitle |
( |
| ) |
|
|
private |
◆ widget()
QWidget * QtxGroupBox::widget |
( |
| ) |
const |
Get central widget (or first found one).
- Returns
- widget
◆ myContainer
The documentation for this class was generated from the following files: