|
QGIS API Documentation 3.99.0-Master (26c88405ac0)
|
A groupbox that collapses/expands when toggled. More...
#include <qgscollapsiblegroupbox.h>

Public Slots | |
| void | checkClicked (bool ckd) |
| void | checkToggled (bool ckd) |
| void | setStyleSheet (const QString &style) |
| Overridden to prepare base call and avoid crash due to specific QT versions. | |
| void | toggleCollapsed () |
Signals | |
| void | collapsedStateChanged (bool collapsed) |
| Signal emitted when groupbox collapsed/expanded state is changed, and when first shown. | |
Public Member Functions | |
| QgsCollapsibleGroupBoxBasic (const QString &title, QWidget *parent=nullptr) | |
| QgsCollapsibleGroupBoxBasic (QWidget *parent=nullptr) | |
| bool | isCollapsed () const |
| Returns the current collapsed state of this group box. | |
| bool | scrollOnExpand () const |
If this is set to false the parent QScrollArea will not be automatically scrolled to this widget's contents when expanded. | |
| void | setCollapsed (bool collapse) |
| Collapse or uncollapse this groupbox. | |
| void | setScrollOnExpand (bool scroll) |
Sets this to false to not automatically scroll parent QScrollArea to this widget's contents when expanded. | |
| void | setSyncGroup (const QString &grp) |
| Named group which synchronizes collapsing action when triangle is clicked while holding alt modifier key. | |
| QString | syncGroup () const |
| Named group which synchronizes collapsing action when triangle is clicked while holding alt modifier key. | |
Protected Member Functions | |
| void | changeEvent (QEvent *event) override |
| void | clearModifiers () |
| void | collapseExpandFixes () |
| Visual fixes for when group box is collapsed/expanded. | |
| void | mousePressEvent (QMouseEvent *event) override |
| void | mouseReleaseEvent (QMouseEvent *event) override |
| void | showEvent (QShowEvent *event) override |
| QRect | titleRect () const |
| void | updateStyle () |
Protected Attributes | |
| bool | mAltDown |
| QgsGroupBoxCollapseButton * | mCollapseButton = nullptr |
| bool | mCollapsed |
| QIcon | mCollapseIcon |
| QIcon | mExpandIcon |
| bool | mInitFlat |
| bool | mInitFlatChecked |
| QScrollArea * | mParentScrollArea = nullptr |
| bool | mScrollOnExpand |
| bool | mShiftDown |
| bool | mShown |
| QString | mSyncGroup |
| QWidget * | mSyncParent = nullptr |
| bool | mTitleClicked |
Properties | |
| bool | collapsed |
| The collapsed state of this group box. | |
| bool | scrollOnExpand |
If this property is set to true, a parent scroll area will try to make sure that the whole group box is visible when uncollapsing it. | |
| QString | syncGroup |
| An optional group to be collapsed and uncollapsed in sync with this group box if the Alt-modifier is pressed while collapsing / uncollapsing. | |
A groupbox that collapses/expands when toggled.
The basic class QgsCollapsibleGroupBoxBasic does not auto-save collapsed or checked states.
Holding Alt modifier key when toggling collapsed state will synchronize the toggling across other collapsible group boxes with the same syncGroup QString value.
Holding Shift modifier key when attempting to toggle collapsed state will expand current group box, then collapse any others with the same syncGroup QString value.
Definition at line 76 of file qgscollapsiblegroupbox.h.
| QgsCollapsibleGroupBoxBasic::QgsCollapsibleGroupBoxBasic | ( | QWidget * | parent = nullptr | ) |
Definition at line 35 of file qgscollapsiblegroupbox.cpp.
| QgsCollapsibleGroupBoxBasic::QgsCollapsibleGroupBoxBasic | ( | const QString & | title, |
| QWidget * | parent = nullptr ) |
Definition at line 41 of file qgscollapsiblegroupbox.cpp.
|
overrideprotected |
Definition at line 168 of file qgscollapsiblegroupbox.cpp.
|
slot |
Definition at line 212 of file qgscollapsiblegroupbox.cpp.
|
slot |
Definition at line 206 of file qgscollapsiblegroupbox.cpp.
|
protected |
Definition at line 198 of file qgscollapsiblegroupbox.cpp.
|
signal |
Signal emitted when groupbox collapsed/expanded state is changed, and when first shown.
|
protected |
Visual fixes for when group box is collapsed/expanded.
Definition at line 440 of file qgscollapsiblegroupbox.cpp.
|
inline |
Returns the current collapsed state of this group box.
Definition at line 105 of file qgscollapsiblegroupbox.h.
|
overrideprotected |
Definition at line 134 of file qgscollapsiblegroupbox.cpp.
|
overrideprotected |
Definition at line 149 of file qgscollapsiblegroupbox.cpp.
|
inline |
If this is set to false the parent QScrollArea will not be automatically scrolled to this widget's contents when expanded.
Definition at line 128 of file qgscollapsiblegroupbox.h.
| void QgsCollapsibleGroupBoxBasic::setCollapsed | ( | bool | collapse | ) |
Collapse or uncollapse this groupbox.
| collapse | Will collapse on true and uncollapse on false |
Definition at line 397 of file qgscollapsiblegroupbox.cpp.
|
inline |
Sets this to false to not automatically scroll parent QScrollArea to this widget's contents when expanded.
Definition at line 125 of file qgscollapsiblegroupbox.h.
|
slot |
Overridden to prepare base call and avoid crash due to specific QT versions.
Definition at line 301 of file qgscollapsiblegroupbox.cpp.
| void QgsCollapsibleGroupBoxBasic::setSyncGroup | ( | const QString & | grp | ) |
Named group which synchronizes collapsing action when triangle is clicked while holding alt modifier key.
Definition at line 180 of file qgscollapsiblegroupbox.cpp.
|
overrideprotected |
Definition at line 82 of file qgscollapsiblegroupbox.cpp.
|
inline |
Named group which synchronizes collapsing action when triangle is clicked while holding alt modifier key.
Definition at line 117 of file qgscollapsiblegroupbox.h.
|
protected |
Definition at line 191 of file qgscollapsiblegroupbox.cpp.
|
slot |
Definition at line 224 of file qgscollapsiblegroupbox.cpp.
|
protected |
Definition at line 306 of file qgscollapsiblegroupbox.cpp.
|
protected |
Definition at line 168 of file qgscollapsiblegroupbox.h.
|
protected |
Definition at line 165 of file qgscollapsiblegroupbox.h.
|
protected |
Definition at line 159 of file qgscollapsiblegroupbox.h.
|
protected |
Definition at line 172 of file qgscollapsiblegroupbox.h.
|
protected |
Definition at line 173 of file qgscollapsiblegroupbox.h.
|
protected |
Definition at line 160 of file qgscollapsiblegroupbox.h.
|
protected |
Definition at line 161 of file qgscollapsiblegroupbox.h.
|
protected |
Definition at line 164 of file qgscollapsiblegroupbox.h.
|
protected |
Definition at line 162 of file qgscollapsiblegroupbox.h.
|
protected |
Definition at line 169 of file qgscollapsiblegroupbox.h.
|
protected |
Definition at line 163 of file qgscollapsiblegroupbox.h.
|
protected |
Definition at line 167 of file qgscollapsiblegroupbox.h.
|
protected |
Definition at line 166 of file qgscollapsiblegroupbox.h.
|
protected |
Definition at line 170 of file qgscollapsiblegroupbox.h.
|
readwrite |
The collapsed state of this group box.
If it is set to true, all content is hidden if it is set to false all content is shown.
Definition at line 84 of file qgscollapsiblegroupbox.h.
|
readwrite |
If this property is set to true, a parent scroll area will try to make sure that the whole group box is visible when uncollapsing it.
Definition at line 96 of file qgscollapsiblegroupbox.h.
|
readwrite |
An optional group to be collapsed and uncollapsed in sync with this group box if the Alt-modifier is pressed while collapsing / uncollapsing.
Definition at line 90 of file qgscollapsiblegroupbox.h.