Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qquickscrollview_p.h
Go to the documentation of this file.
1// Copyright (C) 2017 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef QQUICKSCROLLVIEW_P_H
6#define QQUICKSCROLLVIEW_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QtQuickTemplates2/private/qquickpane_p.h>
20#include <QtQml/qqmllist.h>
21
23
25
26class Q_QUICKTEMPLATES2_EXPORT QQuickScrollView : public QQuickPane
27{
28 Q_OBJECT
29 QML_NAMED_ELEMENT(ScrollView)
30 QML_ADDED_IN_VERSION(2, 2)
31 Q_PROPERTY(qreal effectiveScrollBarWidth READ effectiveScrollBarWidth NOTIFY effectiveScrollBarWidthChanged FINAL REVISION(6, 6))
32 Q_PROPERTY(qreal effectiveScrollBarHeight READ effectiveScrollBarHeight NOTIFY effectiveScrollBarHeightChanged FINAL REVISION(6, 6))
33
34public:
35 explicit QQuickScrollView(QQuickItem *parent = nullptr);
36 ~QQuickScrollView();
37 qreal effectiveScrollBarWidth();
38 qreal effectiveScrollBarHeight();
39
40protected:
41 bool childMouseEventFilter(QQuickItem *item, QEvent *event) override;
42 bool eventFilter(QObject *object, QEvent *event) override;
43 void keyPressEvent(QKeyEvent *event) override;
44
45 void componentComplete() override;
46 void contentItemChange(QQuickItem *newItem, QQuickItem *oldItem) override;
47 void contentSizeChange(const QSizeF &newSize, const QSizeF &oldSize) override;
48
49#if QT_CONFIG(accessibility)
50 QAccessible::Role accessibleRole() const override;
51#endif
52
53Q_SIGNALS:
54 Q_REVISION(6, 6) void effectiveScrollBarWidthChanged();
55 Q_REVISION(6, 6) void effectiveScrollBarHeightChanged();
56
57private:
58 Q_DISABLE_COPY(QQuickScrollView)
59 Q_DECLARE_PRIVATE(QQuickScrollView)
60};
61
62QT_END_NAMESPACE
63
64#endif // QQUICKSCROLLVIEW_P_H
void itemGeometryChanged(QQuickItem *item, QQuickGeometryChange change, const QRectF &diff) override
void setFlickable(QQuickFlickable *flickable)
void layoutHorizontal(bool move=true)
void itemImplicitHeightChanged(QQuickItem *item) override
void itemDestroyed(QQuickItem *item) override
static QQuickScrollBarAttachedPrivate * get(QQuickScrollBarAttached *attached)
void itemImplicitWidthChanged(QQuickItem *item) override
void itemImplicitHeightChanged(QQuickItem *item) override
bool handlePress(const QPointF &point, ulong timestamp) override
QQuickIndicatorButton * increaseVisual
qreal snapPosition(qreal position) const
QQuickIndicatorButton * decreaseVisual
void itemImplicitWidthChanged(QQuickItem *item) override
void updateHover(const QPointF &pos, std::optional< bool > newHoverState={})
bool handleRelease(const QPointF &point, ulong timestamp) override
bool handleMove(const QPointF &point, ulong timestamp) override
void visualAreaChange(const VisualArea &newVisualArea, const VisualArea &oldVisualArea)
qreal positionAt(const QPointF &point) const
void setPosition(qreal position, bool notifyVisualChange=true)
void setInteractive(bool interactive)
void resizeContent() override
qreal logicalPosition(qreal position) const
VisualArea visualArea() const
static QT_BEGIN_NAMESPACE const QQuickItemPrivate::ChangeTypes QsbChangeTypes
Vertical or horizontal interactive scroll bar.
static const QQuickItemPrivate::ChangeTypes QsbVerticalChangeTypes
static const QQuickItemPrivate::ChangeTypes QsbHorizontalChangeTypes