Qt Quick 3D - Particles 3D Testbed Example
import QtQuick
import QtQuick3D
import QtQuick3D.Particles3D
import QtQuick.Controls
Window {
id: rootWindow
readonly property url startupView: "StartupView.qml"
QtObject {
id: settings
property var antialiasingMode: SceneEnvironment.NoAA
property var antialiasingQuality: SceneEnvironment.High
property bool showSettingsView: true
property bool showLoggingView: false
property real fontSizeLarge: 16
property real fontSizeSmall: 10
}
readonly property real iconSize: 16 + Math.max(width, height) * 0.05
width: 1280
height: 720
visible: true
title: qsTr("Qt Quick 3D Particles3D Testbed")
color: "#000000"
Loader {
id: loader
anchors.fill: parent
source: startupView
}
Button {
id: backButton
anchors.left: parent.left
anchors.top: parent.top
width: rootWindow.iconSize
height: width
opacity: loader.source !== startupView
visible: opacity
icon.source: "qrc:/qml/images/arrow_icon.png"
icon.width: backButton.width * 0.3
icon.height: backButton.height * 0.3
icon.color: "transparent"
background: Rectangle {
color: "transparent"
}
onClicked: {
loader.source = startupView;
}
Behavior on opacity {
NumberAnimation {
duration: 400
easing.type: Easing.InOutQuad
}
}