![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
Scrollable view. More...
Public Types | |
| enum class | ContentItemFlag { DoNotSet , Set , DoNotSet , Set } |
| enum class | ContentItemFlag { DoNotSet , Set , DoNotSet , Set } |
| Public Types inherited from QQuickControlPrivate | |
| enum class | UnhideVisibility { Show , Hide } |
| Public Types inherited from QQuickItemPrivate | |
| enum | ChangeType { Geometry = 0x01 , SiblingOrder = 0x02 , Visibility = 0x04 , Opacity = 0x08 , Destroyed = 0x10 , Parent = 0x20 , Children = 0x40 , Rotation = 0x80 , ImplicitWidth = 0x100 , ImplicitHeight = 0x200 , Enabled = 0x400 , Focus = 0x800 , Scale = 0x1000 , Matrix = 0x2000 , AllChanges = 0xFFFFFFFF } |
| enum | ExtraDataTag { NoTag = 0x1 , LeftMouseButtonAccepted = 0x2 } |
| enum | DirtyType { TransformOrigin = 0x00000001 , Transform = 0x00000002 , BasicTransform = 0x00000004 , Position = 0x00000008 , Size = 0x00000010 , ZValue = 0x00000020 , Content = 0x00000040 , Smooth = 0x00000080 , OpacityValue = 0x00000100 , ChildrenChanged = 0x00000200 , ChildrenStackingChanged = 0x00000400 , ParentChanged = 0x00000800 , Clip = 0x00001000 , Window = 0x00002000 , EffectReference = 0x00008000 , Visible = 0x00010000 , HideReference = 0x00020000 , Antialiasing = 0x00040000 , TransformUpdateMask , ComplexTransformUpdateMask = Transform | Window , ContentUpdateMask = Size | Content | Smooth | Window | Antialiasing , ChildrenUpdateMask = ChildrenChanged | ChildrenStackingChanged | EffectReference | Window } |
| Public Types inherited from QObjectPrivate | |
| typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
| using | ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData> |
| Public Types inherited from QSafeQuickItemChangeListener< QQuickControlPrivate > | |
| using | InDestructorTest |
| using | WasDeletedTest |
Additional Inherited Members | |
| Static Public Attributes inherited from QQuickControlPrivate | |
| static const ChangeTypes | ImplicitSizeChanges = QQuickItemPrivate::ImplicitWidth | QQuickItemPrivate::ImplicitHeight | QQuickItemPrivate::Destroyed |
| Abstract base type providing functionality common to all controls. | |
| Static Public Attributes inherited from QQuickItemPrivate | |
| static bool | customOverlayRequested = false |
| Protected Member Functions inherited from QQuickPaletteProviderPrivateBase< QQuickItem, QQuickItemPrivate > | |
| void | setCurrentColorGroup () |
Scrollable view.
\qmltype ScrollView \inherits Pane
! \nativetype QQuickScrollView \inqmlmodule QtQuick.Controls
ScrollView provides scrolling for user-defined content. It can be used to either replace a \l Flickable, or to decorate an existing one.
{Scroll view containing scrollable content}
The first example demonstrates the simplest usage of ScrollView.
The second example illustrates using an existing \l Flickable, that is, a \l ListView.
Definition at line 99 of file qquickscrollview.cpp.
|
strong |
| Enumerator | |
|---|---|
| DoNotSet | |
| Set | |
| DoNotSet | |
| Set | |
Definition at line 111 of file qquickscrollview.cpp.
|
strong |
| Enumerator | |
|---|---|
| DoNotSet | |
| Set | |
| DoNotSet | |
| Set | |
Definition at line 111 of file qquickscrollview.cpp.
|
overridevirtual |
Reimplemented from QQuickPanePrivate.
Definition at line 156 of file qquickscrollview.cpp.
References flickable.
|
overridevirtual |
Reimplemented from QQuickPanePrivate.
|
overridevirtual |
\qmlproperty list<Item> QtQuick.Controls::ScrollView::contentChildren
This property holds the list of content children.
The list contains all items that have been declared in QML as children of the view.
contentData, contentChildren does not include non-visual QML objects.Reimplemented from QQuickPanePrivate.
Definition at line 596 of file qquickscrollview.cpp.
|
overridevirtual |
\qmlproperty list<Item> QtQuick.Controls::Pane::contentChildren
This property holds the list of content children.
The list contains all items that have been declared in QML as children of the pane.
contentData, contentChildren does not include non-visual QML objects.Reimplemented from QQuickPanePrivate.
|
static |
Definition at line 447 of file qquickscrollview.cpp.
References ensureFlickable(), flickable, Set, and setFlickable().
|
static |
|
static |
Definition at line 470 of file qquickscrollview.cpp.
References flickable.
|
static |
|
static |
Definition at line 480 of file qquickscrollview.cpp.
References flickable.
|
static |
|
static |
Definition at line 460 of file qquickscrollview.cpp.
References flickable.
|
static |
|
overridevirtual |
\qmlproperty list<QtObject> QtQuick.Controls::ScrollView::contentData \qmldefault
This property holds the list of content data.
The list contains all objects that have been declared in QML as children of the view.
contentChildren, contentData does include non-visual QML objects.Reimplemented from QQuickPanePrivate.
Definition at line 575 of file qquickscrollview.cpp.
|
overridevirtual |
\qmlproperty list<QtObject> QtQuick.Controls::Pane::contentData \qmldefault
This property holds the list of content data.
The list contains all objects that have been declared in QML as children of the pane.
contentChildren, contentData does include non-visual QML objects.Reimplemented from QQuickPanePrivate.
|
static |
Definition at line 402 of file qquickscrollview.cpp.
References ensureFlickable(), flickable, Set, and setFlickable().
|
static |
|
static |
Definition at line 427 of file qquickscrollview.cpp.
References flickable.
|
static |
|
static |
Definition at line 437 of file qquickscrollview.cpp.
References flickable.
|
static |
|
static |
Definition at line 417 of file qquickscrollview.cpp.
References flickable.
|
static |
| void QQuickScrollViewPrivate::disconnectScrollBarSignals | ( | QQuickScrollBarAttachedPrivate * | scrollBar | ) |
Definition at line 236 of file qquickscrollview.cpp.
Referenced by setFlickable().
| void QQuickScrollViewPrivate::disconnectScrollBarSignals | ( | QQuickScrollBarAttachedPrivate * | scrollBar | ) |
| QQuickFlickable * QQuickScrollViewPrivate::ensureFlickable | ( | ContentItemFlag | contentItemFlag | ) |
Definition at line 178 of file qquickscrollview.cpp.
References flickable, flickableHasExplicitContentHeight, flickableHasExplicitContentWidth, and setFlickable().
Referenced by contentChildren_append(), contentData_append(), and getContentItem().
| QQuickFlickable * QQuickScrollViewPrivate::ensureFlickable | ( | ContentItemFlag | contentItemFlag | ) |
| void QQuickScrollViewPrivate::flickableContentHeightChanged | ( | ) |
Definition at line 328 of file qquickscrollview.cpp.
References flickable, and flickableHasExplicitContentHeight.
Referenced by setFlickable().
| void QQuickScrollViewPrivate::flickableContentHeightChanged | ( | ) |
| void QQuickScrollViewPrivate::flickableContentWidthChanged | ( | ) |
Definition at line 313 of file qquickscrollview.cpp.
References flickable, and flickableHasExplicitContentWidth.
Referenced by setFlickable().
| void QQuickScrollViewPrivate::flickableContentWidthChanged | ( | ) |
|
overridevirtual |
Reimplemented from QQuickPanePrivate.
Definition at line 355 of file qquickscrollview.cpp.
References flickable, and flickableHasExplicitContentHeight.
|
overridevirtual |
Reimplemented from QQuickPanePrivate.
|
overridevirtual |
Reimplemented from QQuickPanePrivate.
Definition at line 164 of file qquickscrollview.cpp.
References DoNotSet, and ensureFlickable().
|
overridevirtual |
Reimplemented from QQuickPanePrivate.
|
overridevirtual |
Reimplemented from QQuickPanePrivate.
Definition at line 343 of file qquickscrollview.cpp.
References flickable, and flickableHasExplicitContentWidth.
|
overridevirtual |
Reimplemented from QQuickPanePrivate.
|
overridevirtual |
Reimplemented from QQuickPanePrivate.
Definition at line 173 of file qquickscrollview.cpp.
|
overridevirtual |
Reimplemented from QQuickPanePrivate.
| QQuickScrollBar * QQuickScrollViewPrivate::horizontalScrollBar | ( | ) | const |
Definition at line 376 of file qquickscrollview.cpp.
| QQuickScrollBar * QQuickScrollViewPrivate::horizontalScrollBar | ( | ) | const |
|
overridevirtual |
Reimplemented from QQuickControlPrivate.
Definition at line 499 of file qquickscrollview.cpp.
References updateScrollBarHeight(), and updateScrollBarWidth().
|
overridevirtual |
Reimplemented from QQuickControlPrivate.
|
overridevirtual |
Reimplemented from QQuickPanePrivate.
Definition at line 490 of file qquickscrollview.cpp.
|
overridevirtual |
Reimplemented from QQuickPanePrivate.
| bool QQuickScrollViewPrivate::setFlickable | ( | QQuickFlickable * | flickable, |
| ContentItemFlag | contentItemFlag ) |
Definition at line 253 of file qquickscrollview.cpp.
References disconnectScrollBarSignals(), flickable, flickableContentHeightChanged(), and flickableContentWidthChanged().
Referenced by contentChildren_append(), contentData_append(), and ensureFlickable().
| bool QQuickScrollViewPrivate::setFlickable | ( | QQuickFlickable * | flickable, |
| ContentItemFlag | contentItemFlag ) |
| void QQuickScrollViewPrivate::setScrollBarsInteractive | ( | bool | interactive | ) |
Definition at line 385 of file qquickscrollview.cpp.
References QQuickScrollBarPrivate::explicitInteractive, and QQuickScrollBarPrivate::setInteractive().
| void QQuickScrollViewPrivate::setScrollBarsInteractive | ( | bool | interactive | ) |
| void QQuickScrollViewPrivate::updateScrollBarHeight | ( | ) |
Definition at line 217 of file qquickscrollview.cpp.
References isUpdatingScrollBar.
Referenced by itemGeometryChanged().
| void QQuickScrollViewPrivate::updateScrollBarHeight | ( | ) |
| void QQuickScrollViewPrivate::updateScrollBarWidth | ( | ) |
Definition at line 199 of file qquickscrollview.cpp.
References isUpdatingScrollBar.
Referenced by itemGeometryChanged().
| void QQuickScrollViewPrivate::updateScrollBarWidth | ( | ) |
| QQuickScrollBar * QQuickScrollViewPrivate::verticalScrollBar | ( | ) | const |
Definition at line 367 of file qquickscrollview.cpp.
| QQuickScrollBar * QQuickScrollViewPrivate::verticalScrollBar | ( | ) | const |
| qreal QQuickScrollViewPrivate::effectiveScrollBarHeight = 0 |
Definition at line 153 of file qquickscrollview.cpp.
| qreal QQuickScrollViewPrivate::effectiveScrollBarWidth = 0 |
Definition at line 152 of file qquickscrollview.cpp.
| QQuickFlickable * QQuickScrollViewPrivate::flickable = nullptr |
Definition at line 148 of file qquickscrollview.cpp.
Referenced by contentChildItems(), contentChildren_append(), contentChildren_at(), contentChildren_clear(), contentChildren_count(), contentData_append(), contentData_at(), contentData_clear(), contentData_count(), ensureFlickable(), flickableContentHeightChanged(), flickableContentWidthChanged(), getContentHeight(), getContentWidth(), and setFlickable().
| bool QQuickScrollViewPrivate::flickableHasExplicitContentHeight = true |
Definition at line 150 of file qquickscrollview.cpp.
Referenced by ensureFlickable(), flickableContentHeightChanged(), and getContentHeight().
| bool QQuickScrollViewPrivate::flickableHasExplicitContentWidth = true |
Definition at line 149 of file qquickscrollview.cpp.
Referenced by ensureFlickable(), flickableContentWidthChanged(), and getContentWidth().
| bool QQuickScrollViewPrivate::isUpdatingScrollBar = false |
Definition at line 151 of file qquickscrollview.cpp.
Referenced by updateScrollBarHeight(), and updateScrollBarWidth().
| bool QQuickScrollViewPrivate::wasTouched = false |
Definition at line 147 of file qquickscrollview.cpp.