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()} } } }