Web Analytics Made Easy - Statcounter
Skip to content

Class SBGUICollapsibleGroupBox#

ClassList > SBGUICollapsibleGroupBox

The SBGUICollapsibleGroupBox class extends QGroupBox to make it possible to collapse/expand it on toggling.More...

  • #include <SBGUICollapsibleGroupBox.hpp>

Inherits the following classes: QGroupBox

Public Slots#

Type Name
slot void onToggled
Slot that updates the visual appearance and child widget visibility when the group box is toggled.

Public Signals#

Type Name
signal void collapsed
The signal is emitted when the group box has been collapsed.
signal void expanded
The signal is emitted when the group box has been expanded.

Public Functions#

Type Name
SBGUICollapsibleGroupBox (QWidget * parent=nullptr)
Constructs the collapsible group box.
SBGUICollapsibleGroupBox (const QString & title, QWidget * parent=nullptr)
Constructs the collapsible group box with title title .
virtual ~SBGUICollapsibleGroupBox ()
Destructs the collapsible group box.

Detailed Description#

Short name: SBCollapsibleComboBox

Public Slots Documentation#

slot onToggled#

Slot that updates the visual appearance and child widget visibility when the group box is toggled.

void SBGUICollapsibleGroupBox::onToggled;

This method adjusts the style sheet based on the check state, shows or hides child widgets accordingly, and emits either the expanded() or collapsed() signal.


Public Signals Documentation#

signal collapsed#

The signal is emitted when the group box has been collapsed.

void SBGUICollapsibleGroupBox::collapsed;


signal expanded#

The signal is emitted when the group box has been expanded.

void SBGUICollapsibleGroupBox::expanded;


Public Functions Documentation#

function SBGUICollapsibleGroupBox [1/2]#

Constructs the collapsible group box.

explicit SBGUICollapsibleGroupBox::SBGUICollapsibleGroupBox (
    QWidget * parent=nullptr
) 

Constructs a collapsible group box without a title.

This constructor creates an instance of SBGUICollapsibleGroupBox with an empty title.

Parameters:

  • parent The parent widget that will contain this group box, or nullptr if there is no parent.

function SBGUICollapsibleGroupBox [2/2]#

Constructs the collapsible group box with title title .

explicit SBGUICollapsibleGroupBox::SBGUICollapsibleGroupBox (
    const QString & title,
    QWidget * parent=nullptr
) 

Constructs a collapsible group box with the given title.

This constructor creates an instance of SBGUICollapsibleGroupBox with the specified title.

Parameters:

  • title The title displayed on the group box.
  • parent The parent widget that will contain this group box, or nullptr if there is no parent.

function ~SBGUICollapsibleGroupBox#

Destructs the collapsible group box.

virtual SBGUICollapsibleGroupBox::~SBGUICollapsibleGroupBox () 

Destroys the collapsible group box.