QGIS API Documentation 3.41.0-Master (45a0abf3bec)
|
A QStackedWidget that can be shrunk to its current widget's size. More...
#include <qgsstackedwidget.h>
Public Types | |
enum class | SizeMode { ConsiderAllPages , CurrentPageOnly } |
Possible modes for calculating a QgsStackedWidget's size. More... | |
Public Member Functions | |
QgsStackedWidget (QWidget *parent=nullptr) | |
Constructor for QgsStackedWidget. | |
QSize | minimumSizeHint () const override |
void | setSizeMode (SizeMode mode) |
Sets the mode for this QgsStackedWidget. | |
QSize | sizeHint () const override |
SizeMode | sizeMode () const |
Returns the SizeMode for this QgsStackedWidget. | |
A QStackedWidget that can be shrunk to its current widget's size.
A regular QStackedWidget can be shrunk down the size of its largest page widget. A QgsStackedWidget can be set to only consider the current page widget's sizeHint and minimumSizeHint when resizing.
Definition at line 37 of file qgsstackedwidget.h.
|
strong |
Possible modes for calculating a QgsStackedWidget's size.
Definition at line 46 of file qgsstackedwidget.h.
|
explicit |
Constructor for QgsStackedWidget.
SizeMode defaults to Consider All Pages, same as QStackedWidget
Definition at line 23 of file qgsstackedwidget.cpp.
|
override |
Definition at line 41 of file qgsstackedwidget.cpp.
|
inline |
Sets the mode for this QgsStackedWidget.
See QgsStackedWidget::SizeMode for interpretation
Definition at line 71 of file qgsstackedwidget.h.
|
override |
Definition at line 29 of file qgsstackedwidget.cpp.
|
inline |
Returns the SizeMode for this QgsStackedWidget.
See QgsStackedWidget::SizeMode for interpretation
Definition at line 64 of file qgsstackedwidget.h.