KSOE/Day1-IntroductionGUIFrameworks/HelloWorlds/qml_helloworld/qml_hello/main.qml

19 lines
359 B
QML
Raw Normal View History

2022-10-09 15:48:33 +02:00
import QtQuick 2.15
import QtQuick.Window 2.15
Window {
width: 640
height: 480
visible: true
title: qsTr("Hello World")
Text {
text: "Counter is " + _counterManager.counter;
anchors.centerIn: parent
MouseArea{
anchors.fill: parent
onClicked: {_counterManager.increase()}
}
}
}