summaryrefslogtreecommitdiffstats
path: root/tests/manual/qtbug-76766/main.qml
blob: b64041f008c09fb59dfe42a8020e26b15ad730ad (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
32
33
34
35
36
37
38
39
40
// Copyright (C) 2019 Klaralvdalens Datakonsult AB (KDAB).
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

import QtQuick 2.12
import QtQuick.Scene3D 2.12
import Qt3D.Render 2.12

Item {
    anchors.fill: parent

    Scene3D {
        id: scene3d
        anchors.fill: parent
        focus: true
        cameraAspectRatioMode: Scene3D.AutomaticAspectRatio

        SceneRoot {
            id: root
        }
    }

    Image {
        width: 400
        fillMode: Image.PreserveAspectFit
        source: "qrc:/expected_output.png"
        Text {
            anchors.centerIn: parent
            color: "white"
            text: "This is the expected output"
        }
        Rectangle {
            anchors.fill: parent
            color: "transparent"
            border {
                color: "white"
                width: 2
            }
        }
    }
}