7#include <QtWidgets/qtwidgetsglobal.h>
8#include <QtWidgets/qlayout.h>
9#ifdef QT_INCLUDE_COMPAT
10#include <QtWidgets/qwidget.h>
18class QBoxLayoutPrivate;
23 Q_DECLARE_PRIVATE(QBoxLayout)
25 enum Direction { LeftToRight, RightToLeft, TopToBottom, BottomToTop,
26 Down = TopToBottom, Up = BottomToTop };
28 explicit QBoxLayout(Direction, QWidget *parent =
nullptr);
32 Direction direction()
const;
33 void setDirection(Direction);
35 void addSpacing(
int size);
36 void addStretch(
int stretch = 0);
37 void addSpacerItem(QSpacerItem *spacerItem);
38 void addWidget(QWidget *,
int stretch = 0, Qt::Alignment alignment = Qt::Alignment());
39 void addLayout(QLayout *layout,
int stretch = 0);
41 void addItem(QLayoutItem *) override;
43 void insertSpacing(
int index,
int size);
44 void insertStretch(
int index,
int stretch = 0);
45 void insertSpacerItem(
int index, QSpacerItem *spacerItem);
46 void insertWidget(
int index, QWidget *widget,
int stretch = 0, Qt::Alignment alignment = Qt::Alignment());
47 void insertLayout(
int index, QLayout *layout,
int stretch = 0);
48 void insertItem(
int index, QLayoutItem *);
50 int spacing()
const override;
51 void setSpacing(
int spacing) override;
53 bool setStretchFactor(QWidget *w,
int stretch);
54 bool setStretchFactor(QLayout *l,
int stretch);
55 void setStretch(
int index,
int stretch);
56 int stretch(
int index)
const;
58 QSize sizeHint()
const override;
59 QSize minimumSize()
const override;
60 QSize maximumSize()
const override;
62 bool hasHeightForWidth()
const override;
63 int heightForWidth(
int)
const override;
64 int minimumHeightForWidth(
int)
const override;
66 Qt::Orientations expandingDirections()
const override;
67 void invalidate() override;
68 QLayoutItem *itemAt(
int)
const override;
69 QLayoutItem *takeAt(
int) override;
70 int count()
const override;
71 void setGeometry(
const QRect&) override;
74 Q_DISABLE_COPY(QBoxLayout)
82 explicit QHBoxLayout(QWidget *parent);
87 Q_DISABLE_COPY(QHBoxLayout)
95 explicit QVBoxLayout(QWidget *parent);
100 Q_DISABLE_COPY(QVBoxLayout)
The QBoxLayout class lines up child widgets horizontally or vertically.
The QHBoxLayout class lines up widgets horizontally.
The QStylePainter class is a convenience class for drawing QStyle elements inside a widget.
The QVBoxLayout class lines up widgets vertically.
QSize minimumSizeHint() const override
\reimp
void setSideWidget(QWidget *widget)
QWatermarkLabel(QWidget *parent, QWidget *sideWidget)
QWidget * sideWidget() const
QWizardDefaultProperty(const char *className, const char *property, const char *changedSignal)
void resolve(const QList< QWizardDefaultProperty > &defaultPropertyTable)
QWizardField(QWizardPage *page, const QString &spec, QObject *object, const char *property, const char *changedSignal)
void findProperty(const QWizardDefaultProperty *properties, int propertyCount)
bool operator!=(const QWizardLayoutInfo &other) const
bool operator==(const QWizardLayoutInfo &other) const
void _q_maybeEmitCompleteChanged()
QMap< int, QString > buttonCustomTexts
void _q_updateCachedCompleteState()
bool cachedIsComplete() const
QPixmap pixmaps[QWizard::NPixmaps]
QList< QWizardField > pendingFields
The QWizardPage class is the base class for wizard pages.
QMap< int, QString > buttonCustomTexts
QMap< QString, int > fieldIndexMap
void setStyle(QStyle *style)
QList< QWizardDefaultProperty > defaultPropertyTable
bool buttonLayoutContains(QWizard::WizardButton which)
void _q_updateButtonStates()
QVBoxLayout * pageVBoxLayout
QWatermarkLabel * watermarkLabel
QWizardLayoutInfo layoutInfoForCurrentPage()
void connectButton(QWizard::WizardButton which) const
void removeFieldAt(int index)
void recreateLayout(const QWizardLayoutInfo &info)
QWizardAntiFlickerWidget * antiFlickerWidget
QWizardHeader * headerWidget
QHBoxLayout * buttonLayout
void updateMinMaxSizes(const QWizardLayoutInfo &info)
void _q_emitCustomButtonClicked()
void setButtonLayout(const QWizard::WizardButton *array, int size)
bool isVistaThemeEnabled() const
void updatePixmap(QWizard::WizardPixmap which)
void _q_handleFieldObjectDestroyed(QObject *)
void switchToPage(int newId, Direction direction)
QList< QWizard::WizardButton > buttonsCustomLayout
QPixmap defaultPixmaps[QWizard::NPixmaps]
QWidget * placeholderWidget2
QWizardRuler * bottomRuler
Qt::TextFormat subTitleFmt
void updateButtonLayout()
QList< QWizardField > fields
bool ensureButton(QWizard::WizardButton which) const
bool buttonsHaveCustomLayout
void cleanupPagesNotInHistory()
QAbstractButton * btns[QWizard::NButtons]
QWidget * placeholderWidget1
void addField(const QWizardField &field)
QWizardLayoutInfo layoutInfo
QWizardRuler(QWidget *parent=nullptr)
The QWizard class provides a framework for wizards.
Combined button and popup list for selecting options.
static const char * buttonSlots(QWizard::WizardButton which)
static QString buttonDefaultText(int wstyle, int which, const QWizardPrivate *wizardPrivate)
static QString object_name_for_button(QWizard::WizardButton which)
Q_DECLARE_TYPEINFO(QWizardDefaultProperty, Q_RELOCATABLE_TYPE)
const int ModernHeaderTopMargin
static void changeSpacerSize(QLayout *layout, int index, int width, int height)
const int MacLayoutLeftMargin
const int GapBetweenLogoAndRightEdge
static bool objectInheritsXAndXIsCloserThanY(const QObject *object, const QByteArray &classX, const QByteArray &classY)
static QWidget * iWantTheFocus(QWidget *ancestor)
Q_DECLARE_TYPEINFO(QWizardField, Q_RELOCATABLE_TYPE)
const int MacLayoutBottomMargin
const int MacLayoutRightMargin
static const char * changed_signal(int which)
const size_t NFallbackDefaultProperties
const int MacButtonTopMargin
const char className[16]
[1]
QT_REQUIRE_CONFIG(wizard)