diff options
Diffstat (limited to 'examples/quickcontrols/gallery/pages/ScrollablePage.qml')
-rw-r--r-- | examples/quickcontrols/gallery/pages/ScrollablePage.qml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/examples/quickcontrols/gallery/pages/ScrollablePage.qml b/examples/quickcontrols/gallery/pages/ScrollablePage.qml new file mode 100644 index 000000000..69bc0cd97 --- /dev/null +++ b/examples/quickcontrols/gallery/pages/ScrollablePage.qml @@ -0,0 +1,24 @@ +// Copyright (C) 2017 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause + +import QtQuick +import QtQuick.Controls + +Page { + id: page + + default property alias content: pane.contentItem + + Flickable { + anchors.fill: parent + contentHeight: pane.implicitHeight + flickableDirection: Flickable.AutoFlickIfNeeded + + Pane { + id: pane + width: parent.width + } + + ScrollIndicator.vertical: ScrollIndicator { } + } +} |