qml demo
This commit is contained in:
33
src/Main.qml
Normal file
33
src/Main.qml
Normal file
@@ -0,0 +1,33 @@
|
||||
|
||||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
|
||||
import AppDemo
|
||||
|
||||
ApplicationWindow {
|
||||
visible: true
|
||||
width: 600
|
||||
height: 400
|
||||
title: "sonobulus"
|
||||
|
||||
TimerComponent {
|
||||
id: timerComponent
|
||||
}
|
||||
|
||||
Column {
|
||||
anchors.centerIn: parent
|
||||
spacing: 20
|
||||
|
||||
Label {
|
||||
text: timerComponent.seconds + " s"
|
||||
font.pixelSize: 32
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
}
|
||||
|
||||
Button {
|
||||
text: "Reset"
|
||||
onClicked: timerComponent.reset()
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user