#include <collapsibleGroupBox.h>
|
| CollapsibleGroupBox (QWidget *parent=0) |
|
| CollapsibleGroupBox (const QString &title, QWidget *parent=0) |
|
void | setCollapsed (bool collapse) |
|
bool | collapsed () const |
|
virtual void | setCollapsedHeight (int heightInPixels) |
| Set the height of the collapsed box. Does not include the title height.
|
|
int | collapsedHeight () const |
|
virtual bool | eventFilter (QObject *child, QEvent *e) |
|
virtual void | setVisible (bool show) |
| Reimplemented for internal reasons.
|
|
|
virtual void | expand (bool expand) |
|
|
virtual void | childEvent (QChildEvent *) |
| reimplemented for internal reasons
|
|
virtual void | paintEvent (QPaintEvent *) |
|
virtual void | mousePressEvent (QMouseEvent *) |
|
virtual void | mouseReleaseEvent (QMouseEvent *) |
|
A QGroupBox with an arrow indicator that shows/hides the groupbox contents when clicked. It responds to the slot QGroupBox::setChecked(bool) or CollapsibleGroupBox::setCollapsed(bool) When checked is true, the groupbox is expanded When checked is false, the groupbox is collapsed
◆ collapsed()
bool CollapsibleGroupBox::collapsed |
( |
| ) |
const |
|
inline |
Return the collapse state of the groupbox true if the groupbox is collapsed (closed), false if it is expanded(open)
◆ eventFilter()
bool CollapsibleGroupBox::eventFilter |
( |
QObject * | child, |
|
|
QEvent * | e ) |
|
virtual |
Reimplemented for internal reasons Catch when a child widget's visibility is externally changed
◆ expand
void CollapsibleGroupBox::expand |
( |
bool | expand | ) |
|
|
protectedvirtualslot |
called when the arrow indicator is clicked users can call it programmatically by calling setChecked(bool)
◆ setCollapsed()
void CollapsibleGroupBox::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)
◆ collapsedHeight
int CollapsibleGroupBox::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.
The documentation for this class was generated from the following files:
- C:/Workspace/itom_development_VS2019_Qt5.15.2_x64/itomProject/itom/itomWidgets/collapsibleGroupBox.h
- C:/Workspace/itom_development_VS2019_Qt5.15.2_x64/itomProject/itom/itomWidgets/collapsibleGroupBox.cpp