QgsCollapsibleGroupBoxBasic class
A groupbox that collapses/expands when toggled.
Contents
Basic class QgsCollapsibleGroupBoxBasic does not auto-save collapsed or checked state 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
Derived classes
- class QgsCollapsibleGroupBox
- A groupbox that collapses/expands when toggled and can save its collapsed and checked states.
Public functions
- auto isCollapsed() const -> bool
- Returns the current collapsed state of this group box.
- auto scrollOnExpand() -> bool
- 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.
- auto syncGroup() const -> QString
- Named group which synchronizes collapsing action when triangle is clicked while holding alt modifier key.
Signals
- void collapsedStateChanged(bool collapsed)
- Signal emitted when groupbox collapsed/expanded state is changed, and when first shown.
Protected functions
- void collapseExpandFixes()
- Visual fixes for when group box is collapsed/expanded.
Function documentation
void QgsCollapsibleGroupBoxBasic:: setCollapsed(bool collapse)
Collapse or uncollapse this groupbox.
| Parameters | |
|---|---|
| collapse | Will collapse on true and uncollapse on false |