![]() |
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. | |
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.
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 96 of file qquickscrollview.cpp.
|
strong |
Enumerator | |
---|---|
DoNotSet | |
Set | |
DoNotSet | |
Set |
Definition at line 108 of file qquickscrollview.cpp.
|
strong |
Enumerator | |
---|---|
DoNotSet | |
Set | |
DoNotSet | |
Set |
Definition at line 108 of file qquickscrollview.cpp.
|
overridevirtual |
Reimplemented from QQuickPanePrivate.
Definition at line 152 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 579 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 439 of file qquickscrollview.cpp.
References ensureFlickable(), flickable, Set, and setFlickable().
|
static |
|
static |
Definition at line 462 of file qquickscrollview.cpp.
References flickable.
|
static |
|
static |
Definition at line 472 of file qquickscrollview.cpp.
References flickable.
|
static |
|
static |
Definition at line 452 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 558 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 394 of file qquickscrollview.cpp.
References ensureFlickable(), flickable, Set, and setFlickable().
|
static |
|
static |
Definition at line 419 of file qquickscrollview.cpp.
References flickable.
|
static |
|
static |
Definition at line 429 of file qquickscrollview.cpp.
References flickable.
|
static |
|
static |
Definition at line 409 of file qquickscrollview.cpp.
References flickable.
|
static |
void QQuickScrollViewPrivate::disconnectScrollBarSignals | ( | QQuickScrollBarAttachedPrivate * | scrollBar | ) |
Definition at line 232 of file qquickscrollview.cpp.
Referenced by setFlickable().
void QQuickScrollViewPrivate::disconnectScrollBarSignals | ( | QQuickScrollBarAttachedPrivate * | scrollBar | ) |
QQuickFlickable * QQuickScrollViewPrivate::ensureFlickable | ( | ContentItemFlag | contentItemFlag | ) |
Definition at line 174 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 320 of file qquickscrollview.cpp.
References flickable, and flickableHasExplicitContentHeight.
Referenced by setFlickable().
void QQuickScrollViewPrivate::flickableContentHeightChanged | ( | ) |
void QQuickScrollViewPrivate::flickableContentWidthChanged | ( | ) |
Definition at line 305 of file qquickscrollview.cpp.
References flickable, and flickableHasExplicitContentWidth.
Referenced by setFlickable().
void QQuickScrollViewPrivate::flickableContentWidthChanged | ( | ) |
|
overridevirtual |
Reimplemented from QQuickPanePrivate.
Definition at line 347 of file qquickscrollview.cpp.
References flickable, and flickableHasExplicitContentHeight.
|
overridevirtual |
Reimplemented from QQuickPanePrivate.
|
overridevirtual |
Reimplemented from QQuickPanePrivate.
Definition at line 160 of file qquickscrollview.cpp.
References DoNotSet, and ensureFlickable().
|
overridevirtual |
Reimplemented from QQuickPanePrivate.
|
overridevirtual |
Reimplemented from QQuickPanePrivate.
Definition at line 335 of file qquickscrollview.cpp.
References flickable, and flickableHasExplicitContentWidth.
|
overridevirtual |
Reimplemented from QQuickPanePrivate.
|
overridevirtual |
Reimplemented from QQuickPanePrivate.
Definition at line 169 of file qquickscrollview.cpp.
|
overridevirtual |
Reimplemented from QQuickPanePrivate.
QQuickScrollBar * QQuickScrollViewPrivate::horizontalScrollBar | ( | ) | const |
Definition at line 368 of file qquickscrollview.cpp.
QQuickScrollBar * QQuickScrollViewPrivate::horizontalScrollBar | ( | ) | const |
|
overridevirtual |
Reimplemented from QQuickPanePrivate.
Definition at line 482 of file qquickscrollview.cpp.
|
overridevirtual |
Reimplemented from QQuickPanePrivate.
bool QQuickScrollViewPrivate::setFlickable | ( | QQuickFlickable * | flickable, |
ContentItemFlag | contentItemFlag ) |
Definition at line 247 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 377 of file qquickscrollview.cpp.
References QQuickScrollBarPrivate::explicitInteractive, and QQuickScrollBarPrivate::setInteractive().
void QQuickScrollViewPrivate::setScrollBarsInteractive | ( | bool | interactive | ) |
void QQuickScrollViewPrivate::updateScrollBarHeight | ( | ) |
Definition at line 213 of file qquickscrollview.cpp.
References isUpdatingScrollBar.
void QQuickScrollViewPrivate::updateScrollBarHeight | ( | ) |
void QQuickScrollViewPrivate::updateScrollBarWidth | ( | ) |
Definition at line 195 of file qquickscrollview.cpp.
References isUpdatingScrollBar.
void QQuickScrollViewPrivate::updateScrollBarWidth | ( | ) |
QQuickScrollBar * QQuickScrollViewPrivate::verticalScrollBar | ( | ) | const |
Definition at line 359 of file qquickscrollview.cpp.
QQuickScrollBar * QQuickScrollViewPrivate::verticalScrollBar | ( | ) | const |
qreal QQuickScrollViewPrivate::effectiveScrollBarHeight = 0 |
Definition at line 149 of file qquickscrollview.cpp.
qreal QQuickScrollViewPrivate::effectiveScrollBarWidth = 0 |
Definition at line 148 of file qquickscrollview.cpp.
QQuickFlickable * QQuickScrollViewPrivate::flickable = nullptr |
Definition at line 144 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 146 of file qquickscrollview.cpp.
Referenced by ensureFlickable(), flickableContentHeightChanged(), and getContentHeight().
bool QQuickScrollViewPrivate::flickableHasExplicitContentWidth = true |
Definition at line 145 of file qquickscrollview.cpp.
Referenced by ensureFlickable(), flickableContentWidthChanged(), and getContentWidth().
bool QQuickScrollViewPrivate::isUpdatingScrollBar = false |
Definition at line 147 of file qquickscrollview.cpp.
Referenced by updateScrollBarHeight(), and updateScrollBarWidth().
bool QQuickScrollViewPrivate::wasTouched = false |
Definition at line 143 of file qquickscrollview.cpp.