| 1 |
// Copyright (C) 2015 Klaralvdalens Datakonsult AB (KDAB). |
| 2 |
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
| 3 |
|
| 4 |
import QtQuick 2.0 |
| 5 |
import QtQuick.Scene3D 2.0 |
| 6 |
import QtQuick.Controls 2.0 |
| 7 |
|
| 8 |
Item { |
| 9 |
|
| 10 |
Loader { |
| 11 |
id: loader |
| 12 |
anchors.fill: parent |
| 13 |
focus: true |
| 14 |
source: "Scene.qml" |
| 15 |
} |
| 16 |
|
| 17 |
Row { |
| 18 |
id: buttonRow |
| 19 |
anchors { |
| 20 |
horizontalCenter: parent.horizontalCenter |
| 21 |
bottom: parent.bottom |
| 22 |
bottomMargin: parent.height * 0.1 |
| 23 |
} |
| 24 |
spacing: 10 |
| 25 |
Button { |
| 26 |
text: "Scene 1"; |
| 27 |
highlighted: loader.source === "Scene.qml" |
| 28 |
onClicked: loader.source = "Scene.qml" |
| 29 |
} |
| 30 |
Button { |
| 31 |
text: "Scene 2"; |
| 32 |
highlighted: loader.source === "Scene2.qml" |
| 33 |
onClicked: loader.source = "Scene2.qml" |
| 34 |
} |
| 35 |
} |
| 36 |
} |