blob: 1b2e3e13f216bf67ddf48e1ee995b4316db2d548 (
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
28
29
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
import Qt 4.7
Rectangle {
width: 100
height: 100
Component {
id: componentOne
Rectangle { width: 80; height: 80; color: "lightsteelblue" }
}
Component {
id: componentTwo
Rectangle { width: 80; height: 80; color: "lightsteelblue" }
}
Loader {
x: 40
y: 40
width: 20
height: 20
sourceComponent: componentTwo
}
}
|