Skip to content
Snippets Groups Projects
Commit 0487091f authored by Yanis Dziki's avatar Yanis Dziki
Browse files

Bouton avec redirect vers page de jeux

parent cce364e1
No related branches found
No related tags found
No related merge requests found
import QtQuick
Item {
x: 120
y: 50
width: 180
height: 40
property alias mouseArea: mouseArea
Rectangle {
id: rectangle
color: "#2ec27e"
anchors.fill: parent
anchors.leftMargin: 0
anchors.rightMargin: 0
anchors.topMargin: 0
anchors.bottomMargin: 0
Text {
id: _text
x: 40
y: 13
text: qsTr("Démarrer la partie")
font.pixelSize: 12
}
}
MouseArea {
id: mouseArea
anchors.fill: parent
}
}
......@@ -31,6 +31,9 @@ qt_add_qml_module(appmotus
RESOURCES assets/enter.png assets/del.png
RESOURCES words_alpha.txt
QML_FILES MenuDeroulant.qml
QML_FILES Bouton.qml
RESOURCES
QML_FILES GameWindow.qml
)
# Qt for iOS sets MACOSX_BUNDLE_GUI_IDENTIFIER automatically since Qt 6.1.
......
import QtQuick
Item {
width: 900
height: 800
Rectangle {
id: rectangle
color: "#ffffff"
anchors.fill: parent
Clavier {
id: clavier
x: 225
y: 594
}
}
}
import QtQuick
Window {
width: 640
height: 480
width: 900
height: 800
visible: true
title: qsTr("Hello World")
MenuDeroulant {
id: menuDeroulant
x: 36
y: 269
x: 38
y: 301
}
Bouton {
id: bouton
x: 360
y: 624
mouseArea.onClicked:{
pageLoader.source = "GameWindow.qml"
}
}
Loader {
id: pageLoader
anchors.centerIn: parent
}
}
......@@ -4,5 +4,8 @@
<file>Main.qml</file>
<file>Clavier.qml</file>
<file>MenuDeroulant.qml</file>
<file>bouton.qml</file>
<file>Bouton.qml</file>
<file>GameWindow.qml</file>
</qresource>
</RCC>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment