29class Q_QUICKTEMPLATES2_EXPORT
QQuickTabBar :
public QQuickContainer
32 Q_PROPERTY(Position position READ position WRITE setPosition NOTIFY positionChanged FINAL)
33 Q_PROPERTY(Qt::Orientation orientation READ orientation WRITE setOrientation NOTIFY
34 orientationChanged FINAL REVISION(6, 13))
35 Q_PROPERTY(
bool horizontal READ isHorizontal NOTIFY orientationChanged FINAL REVISION(6, 13))
36 Q_PROPERTY(
bool vertical READ isVertical NOTIFY orientationChanged FINAL REVISION(6, 13))
37 QML_NAMED_ELEMENT(TabBar)
38 QML_ATTACHED(QQuickTabBarAttached)
39 QML_ADDED_IN_VERSION(2, 0)
42 explicit QQuickTabBar(QQuickItem *parent =
nullptr);
50 Position position()
const;
51 void setPosition(Position position);
53 Qt::Orientation orientation()
const;
54 void setOrientation(Qt::Orientation orientation);
56 bool isHorizontal()
const;
57 bool isVertical()
const;
59 static QQuickTabBarAttached *qmlAttachedProperties(QObject *object);
62 void positionChanged();
63 Q_REVISION(6, 13)
void orientationChanged();
66 void updatePolish() override;
67 void componentComplete() override;
68 void geometryChange(
const QRectF &newGeometry,
const QRectF &oldGeometry) override;
69 bool isContent(QQuickItem *item)
const override;
70 void itemAdded(
int index, QQuickItem *item) override;
71 void itemMoved(
int index, QQuickItem *item) override;
72 void itemRemoved(
int index, QQuickItem *item) override;
73#if QT_CONFIG(wheelevent)
74 void wheelEvent(QWheelEvent *event) override;
77 QFont defaultFont()
const override;
79#if QT_CONFIG(accessibility)
80 QAccessible::Role accessibleRole()
const override;
84 Q_DISABLE_COPY(QQuickTabBar)
85 Q_DECLARE_PRIVATE(QQuickTabBar)
91 Q_PROPERTY(
int index READ index NOTIFY indexChanged FINAL)
92 Q_PROPERTY(QQuickTabBar *tabBar READ tabBar NOTIFY tabBarChanged FINAL)
93 Q_PROPERTY(QQuickTabBar::Position position READ position NOTIFY positionChanged FINAL)
96 explicit QQuickTabBarAttached(QObject *parent =
nullptr);
99 QQuickTabBar *tabBar()
const;
100 QQuickTabBar::Position position()
const;
104 void tabBarChanged();
105 void positionChanged();
108 Q_DISABLE_COPY(QQuickTabBarAttached)
109 Q_DECLARE_PRIVATE(QQuickTabBarAttached)