1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-09-15 06:52:34 +02:00
ScreenPlay/Content/wallpaper_interactive/main.qml
2023-07-29 11:01:56 +02:00

29 lines
657 B
QML

// SPDX-License-Identifier: BSD-3-Clause
import QtQuick
import QtQuick.Layouts
import QtQuick.Controls
import QtQuick.Controls.Material
Rectangle {
id: root
color: "#333333"
anchors.fill: parent
property int counter: 0
ColumnLayout {
anchors.centerIn: parent
Text {
Layout.fillWidth: true
color: "white"
font.pointSize: 14
text: "🎉 Qml Button clicked: " + root.counter
horizontalAlignment: Text.AlignHCenter
}
Button {
text: "Click me!"
Layout.fillWidth: true
onClicked: root.counter++
}
}
}