Untitled

mail@pastecode.io avatar
unknown
plain_text
15 days ago
653 B
0
Indexable
Never
import QtQuick 2.15
import QtQuick.Controls 2.15
import CounterModule 1.0

ApplicationWindow {
    visible: true
    width: 640
    height: 480
    title: qsTr("Hello World")

    Counter {
        id: tunahan
        onJimChanged: {
            countLabel.text = "Count: " + tunahan.jim;
        }
    }

    Column {
        anchors.centerIn: parent
        spacing: 20

        Button {
            text: "Start Counting"
            onClicked: {
                tunahan.startCounting();
            }
        }

        Label {
            id: countLabel
            text: "Count: " + tunahan.jim
        }
    }
}
Leave a Comment