aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickflickable/data/nested.qml
blob: 0cbeb5cef3d8161cf2fd78689daa33b8d64256ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright (C) 2021 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
import QtQuick 2.12

Flickable {
    id: root
    objectName: "root flickable"
    width: 240; height: 240
    contentHeight: 1000

    Flickable {
        flickableDirection: Flickable.HorizontalFlick
        width: root.width
        height: 100
        contentWidth: 1000
        objectName: "inner flickable"
        Repeater {
            model: 10
            Rectangle {
                x: 100 * index
                width: 96
                height: 96
                color: Qt.rgba(Math.random(), Math.random(), Math.random(), Math.random())
            }
        }
    }
}