From 7d906895561be8f6bb25511becf2a53a80229945 Mon Sep 17 00:00:00 2001 From: Anatasof Wirapraja Date: Tue, 17 Sep 2019 15:42:41 +0700 Subject: use `Onboarding` feature as initialItem --- features/Onboarding.qml | 5 +++++ features/OnboardingForm.ui.qml | 15 +++++++++++++++ main.qml | 7 ++++++- 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 features/Onboarding.qml create mode 100644 features/OnboardingForm.ui.qml diff --git a/features/Onboarding.qml b/features/Onboarding.qml new file mode 100644 index 0000000..eaa0052 --- /dev/null +++ b/features/Onboarding.qml @@ -0,0 +1,5 @@ +import QtQuick 2.4 + +OnboardingForm { + objectName: "onboarding" +} diff --git a/features/OnboardingForm.ui.qml b/features/OnboardingForm.ui.qml new file mode 100644 index 0000000..09d8014 --- /dev/null +++ b/features/OnboardingForm.ui.qml @@ -0,0 +1,15 @@ +import QtQuick 2.12 +import QtQuick.Layouts 1.12 +import QtQuick.Controls 2.12 +import QtQuick.Controls.Material 2.12 + +Page { + title: qsTr("Onboarding") +} + +/*##^## +Designer { + D{i:0;autoSize:true;height:480;width:640} +} +##^##*/ + diff --git a/main.qml b/main.qml index 12054cf..d4c6803 100644 --- a/main.qml +++ b/main.qml @@ -2,6 +2,7 @@ import QtQuick 2.12 import QtQuick.Controls 2.12 import QtQuick.Controls.Material 2.12 import QtQuick.Layouts 1.12 +import "features" ApplicationWindow { id: window @@ -49,6 +50,7 @@ ApplicationWindow { id: drawer width: window.width * 0.8 height: window.height + visible: false Column { anchors.fill: parent @@ -74,7 +76,10 @@ ApplicationWindow { StackView { id: stackView - initialItem: "HomeForm.ui.qml" + initialItem: Onboarding { + + } + anchors.fill: parent } } -- cgit v1.2.3