blob: 3c05670991401d5be4d8e2276b9c17fe6009d257 (
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
30
31
|
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
import QtQuick 2.0
Item {
Rectangle {
border.color: "red"
border.width: 4
width: im1.sourceSize.width + 8
height: im1.sourceSize.height + 8
Image {
id: im1
source: "qrc:/car_etc2_nomips.ktx"
anchors.centerIn: parent
}
}
Rectangle {
anchors.centerIn: parent
border.color: "red"
border.width: 4
width: im2.sourceSize.width + 8
height: im2.sourceSize.height + 8
Image {
id: im2
source: "qrc:/qt_bc1_10mips.ktx"
anchors.centerIn: parent
}
}
}
|