blob: 7fa331c46c454ecbb9a624cda1d1cbaa877bd31c (
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 WITH Qt-GPL-exception-1.0
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())
}
}
}
}
|