diff --git a/Motus/CMakeLists.txt b/Motus/CMakeLists.txt index f0d29ebc972e45220564213b4491467cda07f58e..17c236083911b3373f025510d9ef47bdca578fb7 100644 --- a/Motus/CMakeLists.txt +++ b/Motus/CMakeLists.txt @@ -18,6 +18,10 @@ qt_add_qml_module(appMotus QML_FILES Main.qml QML_FILES Case.qml + RESOURCES Ressources.qrc + QML_FILES Case.qml + QML_FILES Case.qml + QML_FILES Case.qml ) # Qt for iOS sets MACOSX_BUNDLE_GUI_IDENTIFIER automatically since Qt 6.1. diff --git a/Motus/Case.qml b/Motus/Case.qml index 5560aee72760e390f8f001f3163d06bc2ed5d055..d754299ae2cd80648e5d646ca72c734dd129870a 100644 --- a/Motus/Case.qml +++ b/Motus/Case.qml @@ -1,5 +1,19 @@ import QtQuick Item { + width: 90 + height: 60 + property alias _textText: _text.text + Text { + id: _text + x: 0 + y: 0 + width: 90 + height: 60 + text: qsTr("Lettre") + font.pixelSize: 24 + horizontalAlignment: Text.AlignHCenter + verticalAlignment: Text.AlignVCenter + } } diff --git a/Motus/Main.qml b/Motus/Main.qml index 41424f88973df650d0672dfdc62f670e86708de2..39f876586369d9738e6570a0f10876feba687753 100644 --- a/Motus/Main.qml +++ b/Motus/Main.qml @@ -1,8 +1,18 @@ import QtQuick Window { - width: 640 - height: 480 + width: 1920 + height: 1080 visible: true title: qsTr("Hello World") + + Rectangle { + id: rectangle + x: 0 + y: 0 + width: 1920 + height: 1080 + color: "#cb4848" + focus: true + } } diff --git a/Motus/Ressources.qrc b/Motus/Ressources.qrc new file mode 100644 index 0000000000000000000000000000000000000000..388ced6d162a2ff549f9ce804e0ee581a39adf5d --- /dev/null +++ b/Motus/Ressources.qrc @@ -0,0 +1,5 @@ +<RCC> + <qresource prefix="/"> + <file>Case.qml</file> + </qresource> +</RCC>