Skip to content
Snippets Groups Projects
Select Git revision
  • 6194bdcad8a87fc43352c8587a51eaadc0cc6969
  • main default protected
2 results

Main.qml

Blame
  • Main.qml 3.83 KiB
    import QtQuick
    
    
    Window {
        visible: true
        width: 400
        height: 600
        title: qsTr("Application 2048")
    
        Text {
    
            text: "Fusionnez les nombres pour atteindre 2048!"
            font.bold: true
            color:"grey"
            anchors.horizontalCenter: parent.horizontalCenter
            y:145
        }
    
        Rectangle{
            width:100;height:100
            color:"orange"
            x:25
            y:10
            radius:4
    
            Text {
    
                    text:"2048"
                    color: "white"
                    font.bold: true
                    font.pixelSize: 30
                    anchors.centerIn: parent
                }
        }
    
        Rectangle{
    
            color:"grey"
            width: 90; height: 90
            x:270
            y:10
            radius:5
    
            Text{
                text: "MEILLEUR"
                color:"lightgrey"
                font.pixelSize: 14
                font.bold: true
                anchors.horizontalCenter: parent.horizontalCenter
                y:10
    
            }
    
            Text{
                id: bestScore
                text:"0"
                color:"white"
                font.bold: true
                font.pixelSize: 25
                anchors.centerIn:parent
    
    
            }
        }
    
        Rectangle{
    
            color:"grey"
            width: 90; height: 90
            x:165