diff options
Diffstat (limited to 'share/qtcreator/qmldesigner/studio_templates/projects/application-extended-3d/Screen01.ui.qml.tpl')
-rw-r--r-- | share/qtcreator/qmldesigner/studio_templates/projects/application-extended-3d/Screen01.ui.qml.tpl | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/share/qtcreator/qmldesigner/studio_templates/projects/application-extended-3d/Screen01.ui.qml.tpl b/share/qtcreator/qmldesigner/studio_templates/projects/application-extended-3d/Screen01.ui.qml.tpl new file mode 100644 index 0000000000..2b26fe3f0c --- /dev/null +++ b/share/qtcreator/qmldesigner/studio_templates/projects/application-extended-3d/Screen01.ui.qml.tpl @@ -0,0 +1,70 @@ +/* +This is a UI file (.ui.qml) that is intended to be edited in Qt Design Studio only. +It is supposed to be strictly declarative and only uses a subset of QML. If you edit +this file manually, you might introduce QML code that is not supported by Qt Design Studio. +Check out https://doc.qt.io/qtcreator/creator-quick-ui-forms.html for details on .ui.qml files. +*/ + +import QtQuick %{QtQuickVersion} +import QtQuick.Controls %{QtQuickVersion} +import QtQuick3D %{QtQuick3DVersion} +import QtQuick3D.Effects %{QtQuick3DVersion} +import QtQuick3D.Helpers %{QtQuick3DVersion} +import %{ImportModuleName} %{ImportModuleVersion} + +Rectangle { + width: Constants.width + height: Constants.height + + color: Constants.backgroundColor + + View3D { + id: view3D + anchors.fill: parent + + environment: sceneEnvironment + + ExtendedSceneEnvironment { + id: sceneEnvironment + antialiasingMode: SceneEnvironment.MSAA + antialiasingQuality: SceneEnvironment.High + } + + Node { + id: scene + DirectionalLight { + id: directionalLight + } + + PerspectiveCamera { + id: sceneCamera + z: 350 + } + + Model { + id: cubeModel + eulerRotation.y: 45 + eulerRotation.x: 30 + materials: defaultMaterial + source: "#Cube" + } + } + } + + Item { + id: __materialLibrary__ + PrincipledMaterial { + id: defaultMaterial + objectName: "Default Material" + baseColor: "#4aee45" + } + } + + Text { + text: qsTr("Hello %{ProjectName}") + anchors.top: parent.top + anchors.horizontalCenter: parent.horizontalCenter + anchors.topMargin: 100 + font.family: Constants.font.family + } +} |