1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-07 03:22:33 +01:00
ScreenPlay/Content/wallpaper_qml/main.qml

28 lines
656 B
QML
Raw Normal View History

2023-07-29 11:01:56 +02:00
// SPDX-License-Identifier: BSD-3-Clause
import QtQuick
2023-07-29 11:01:56 +02:00
import QtQuick.Layouts
import QtQuick.Controls
import QtQuick.Controls.Material
Rectangle {
id: root
color: "#333333"
anchors.fill: parent
2023-07-29 11:01:56 +02:00
property int counter: 0
ColumnLayout {
anchors.centerIn: parent
2023-07-29 11:01:56 +02:00
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++
}
}
}