4#ifndef QQUICKSTACKLAYOUT_H
5#define QQUICKSTACKLAYOUT_H
18#include <QtQuickLayouts/private/qquicklayoutglobal_p.h>
19#include <QtQuickLayouts/private/qquicklayout_p.h>
30 Q_PROPERTY(
int currentIndex READ currentIndex WRITE setCurrentIndex NOTIFY currentIndexChanged)
38 int currentIndex() const;
39 void setCurrentIndex(
int index);
41 void componentComplete() override;
45 void invalidate(
QQuickItem *childItem =
nullptr) override;
46 void updateLayoutItems()
override { }
47 void rearrange(
const QSizeF &)
override;
52 int itemCount()
const override;
65 enum AdjustCurrentIndexPolicy {
66 DontAdjustCurrentIndex,
72 void childItemsChanged(AdjustCurrentIndexPolicy adjustCurrentIndexPolicy = DontAdjustCurrentIndex);
86 mutable QHash<QQuickItem*, SizeHints> m_cachedItemSizeHints;
88 SizeHints &cachedItemSizeHints(
int index)
const;
99 bool explicitCurrentIndex;
106 Q_PROPERTY(
bool isCurrentItem READ isCurrentItem NOTIFY isCurrentItemChanged FINAL)
115 bool isCurrentItem() const;
116 void setIsCurrentItem(
bool isCurrentItem);
123 void isCurrentItemChanged();
124 void layoutChanged();
128 bool m_isCurrentItem =
false;
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
ItemChange
Used in conjunction with QQuickItem::itemChange() to notify the item about certain types of changes.
QQuickStackLayoutPrivate()
void currentIndexChanged()
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
static void setIndex(int *index, int candidate, int min, int max, bool isIncreasing)
GLenum GLenum GLsizei count
#define QML_NAMED_ELEMENT(NAME)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
#define QML_ATTACHED(ATTACHED_TYPE)
label setAlignment(Qt::AlignLeft|Qt::AlignTop)
[0]