| 1 |
// Copyright (C) 2019 Klaralvdalens Datakonsult AB (KDAB). |
| 2 |
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
| 3 |
|
| 4 |
import QtQuick 2.12 |
| 5 |
import QtQuick.Scene3D 2.12 |
| 6 |
import Qt3D.Render 2.12 |
| 7 |
|
| 8 |
Item { |
| 9 |
anchors.fill: parent |
| 10 |
|
| 11 |
Scene3D { |
| 12 |
id: scene3d |
| 13 |
anchors.fill: parent |
| 14 |
focus: true |
| 15 |
cameraAspectRatioMode: Scene3D.AutomaticAspectRatio |
| 16 |
|
| 17 |
SceneRoot { |
| 18 |
id: root |
| 19 |
} |
| 20 |
} |
| 21 |
|
| 22 |
Image { |
| 23 |
width: 400 |
| 24 |
fillMode: Image.PreserveAspectFit |
| 25 |
source: "qrc:/expected_output.png" |
| 26 |
Text { |
| 27 |
anchors.centerIn: parent |
| 28 |
color: "white" |
| 29 |
text: "This is the expected output" |
| 30 |
} |
| 31 |
Rectangle { |
| 32 |
anchors.fill: parent |
| 33 |
color: "transparent" |
| 34 |
border { |
| 35 |
color: "white" |
| 36 |
width: 2 |
| 37 |
} |
| 38 |
} |
| 39 |
} |
| 40 |
} |