#include <Libs/Widgets/ctkCollapsibleGroupBox.h>
|
virtual void | expand (bool expand) |
|
|
QScopedPointer< ctkCollapsibleGroupBoxPrivate > | d_ptr |
|
A QGroupBox with an arrow indicator that shows/hides the groupbox contents when clicked. It responds to the slot QGroupBox::setChecked(bool) or ctkCollapsibleGroupBox::setCollapsed(bool) When checked is true, the groupbox is expanded When checked is false, the groupbox is collapsed
Definition at line 37 of file ctkCollapsibleGroupBox.h.
◆ ctkCollapsibleGroupBox() [1/2]
ctkCollapsibleGroupBox::ctkCollapsibleGroupBox |
( |
QWidget * |
parent = 0 | ) |
|
◆ ctkCollapsibleGroupBox() [2/2]
ctkCollapsibleGroupBox::ctkCollapsibleGroupBox |
( |
const QString & |
title, |
|
|
QWidget * |
parent = 0 |
|
) |
| |
◆ ~ctkCollapsibleGroupBox()
virtual ctkCollapsibleGroupBox::~ctkCollapsibleGroupBox |
( |
| ) |
|
|
virtual |
◆ childEvent()
virtual void ctkCollapsibleGroupBox::childEvent |
( |
QChildEvent * |
| ) |
|
|
protectedvirtual |
reimplemented for internal reasons
◆ collapsed()
bool ctkCollapsibleGroupBox::collapsed |
( |
| ) |
const |
|
inline |
Return the collapse state of the groupbox true if the groupbox is collapsed (closed), false if it is expanded(open)
Definition at line 94 of file ctkCollapsibleGroupBox.h.
◆ collapsedHeight()
int ctkCollapsibleGroupBox::collapsedHeight |
( |
| ) |
const |
◆ eventFilter()
virtual bool ctkCollapsibleGroupBox::eventFilter |
( |
QObject * |
child, |
|
|
QEvent * |
e |
|
) |
| |
|
virtual |
Reimplemented for internal reasons Catch when a child widget's visibility is externally changed
◆ expand
virtual void ctkCollapsibleGroupBox::expand |
( |
bool |
expand | ) |
|
|
protectedvirtualslot |
called when the arrow indicator is clicked users can call it programatically by calling setChecked(bool)
◆ mousePressEvent()
virtual void ctkCollapsibleGroupBox::mousePressEvent |
( |
QMouseEvent * |
| ) |
|
|
protectedvirtual |
◆ mouseReleaseEvent()
virtual void ctkCollapsibleGroupBox::mouseReleaseEvent |
( |
QMouseEvent * |
| ) |
|
|
protectedvirtual |
◆ paintEvent()
virtual void ctkCollapsibleGroupBox::paintEvent |
( |
QPaintEvent * |
| ) |
|
|
protectedvirtual |
◆ setCollapsed()
void ctkCollapsibleGroupBox::setCollapsed |
( |
bool |
collapse | ) |
|
|
inline |
Utility function to collapse the groupbox Collapse(close) the group box if collapse is true, expand(open) it otherwise.
- See also
- QGroupBox::setChecked(bool)
Definition at line 100 of file ctkCollapsibleGroupBox.h.
◆ setCollapsedHeight()
virtual void ctkCollapsibleGroupBox::setCollapsedHeight |
( |
int |
heightInPixels | ) |
|
|
virtual |
Set the height of the collapsed box. Does not include the title height.
◆ setVisible()
virtual void ctkCollapsibleGroupBox::setVisible |
( |
bool |
show | ) |
|
|
virtual |
Reimplemented for internal reasons.
◆ d_ptr
QScopedPointer<ctkCollapsibleGroupBoxPrivate> ctkCollapsibleGroupBox::d_ptr |
|
protected |
◆ collapsed
bool ctkCollapsibleGroupBox::collapsed |
|
readwrite |
◆ collapsedHeight
int ctkCollapsibleGroupBox::collapsedHeight |
|
readwrite |
This property holds the height in pixels of the contents (excludes the title) when the box is collapsed. 14px by default, it is the smallest height that fit Mac Style.
Definition at line 100 of file ctkCollapsibleGroupBox.h.
The documentation for this class was generated from the following file: