Maki
Formally verfied low-code orchestration
Loading...
Searching...
No Matches
maki::WidgetGroup Class Reference

A labelled container widget that groups widgets in a generic layout. More...

#include <widget_factory.h>

Inheritance diagram for maki::WidgetGroup:
maki::WidgetScrollGroup

Public Member Functions

 WidgetGroup (const QString &label, QWidget *parent)
 Constructs a widget group with a label.
virtual void addWidget (QWidget *widget)
 Adds a widget to the group.
virtual void addLayout (QLayout *layout)
 Adds a layout to the group.
virtual void addSpacing (int spacing)
 Adds fixed spacing to the group layout.
virtual void addStretch ()
 Adds a stretchable spacer to the group layout.

Detailed Description

A labelled container widget that groups widgets in a generic layout.

Constructor & Destructor Documentation

◆ WidgetGroup()

maki::WidgetGroup::WidgetGroup ( const QString & label,
QWidget * parent )

Constructs a widget group with a label.

Parameters
labelThe visible label for the group.
parentThe parent widget.

Member Function Documentation

◆ addLayout()

void maki::WidgetGroup::addLayout ( QLayout * layout)
virtual

Adds a layout to the group.

Parameters
layoutThe layout to add.

◆ addSpacing()

void maki::WidgetGroup::addSpacing ( int spacing)
virtual

Adds fixed spacing to the group layout.

Parameters
spacingThe amount of spacing to add, in pixels.

◆ addWidget()

void maki::WidgetGroup::addWidget ( QWidget * widget)
virtual

Adds a widget to the group.

Parameters
widgetThe widget to add.

The documentation for this class was generated from the following files:
  • /__w/maki/maki/app/widgets/widget_factory.h
  • /__w/maki/maki/app/widgets/widget_factory.cpp