diff --git a/qml/UkuiMenuUI.qml b/qml/UkuiMenuUI.qml new file mode 100644 index 0000000..87057bd --- /dev/null +++ b/qml/UkuiMenuUI.qml @@ -0,0 +1,18 @@ +import QtQuick 2.12 +import QtQuick.Controls 2.0 as QQC2 + +import AppUI 1.0 as AppUI +import AppControls2 1.0 as AppControls2 + +Item { + AppUI.AppTest { + width: 200 + height: 480 + } + + AppControls2.AppTest { + x: 400 + width: 200 + height: 480 + } +} diff --git a/qml/main.qml b/qml/main.qml index ba421c7..7bb293a 100644 --- a/qml/main.qml +++ b/qml/main.qml @@ -1,24 +1,15 @@ import QtQuick 2.12 import QtQuick.Window 2.12 -import QtQuick.Controls 2.0 - -import AppUI 1.0 as AppUI -import AppControls2 1.0 as AppControls2 Window { + id: mainWindow visible: true width: 600 height: 480 title: qsTr("Hello World") - AppUI.AppTest { - width: 200 - height: 480 + Loader { + anchors.fill: mainWindow.contentItem; + source: "qrc:/qml/UkuiMenuUI.qml" } - - AppControls2.AppTest { - x: 400 - width: 200 - height: 480 - } } diff --git a/qml/qml.qrc b/qml/qml.qrc index 11132cf..c17420f 100644 --- a/qml/qml.qrc +++ b/qml/qml.qrc @@ -1,6 +1,7 @@ main.qml + UkuiMenuUI.qml AppUI/qmldir AppUI/App.qml AppControls2/qmldir