scope checkpoint
This commit is contained in:
20
ui/Main.qml
20
ui/Main.qml
@@ -6,8 +6,8 @@ import AppDemo
|
||||
|
||||
ApplicationWindow {
|
||||
visible: true
|
||||
width: 600
|
||||
height: 400
|
||||
width: 1200
|
||||
height: 800
|
||||
title: "sonobulus"
|
||||
|
||||
TimerComponent {
|
||||
@@ -49,4 +49,20 @@ ApplicationWindow {
|
||||
}
|
||||
}
|
||||
|
||||
Scope {
|
||||
id: scope
|
||||
|
||||
width: 600
|
||||
height: 300
|
||||
|
||||
// this timer triggers a constant update on the scope's canvas, calls its draw() each time
|
||||
Timer {
|
||||
id: updateTimer
|
||||
interval: 16 // ~60 fps
|
||||
running: true
|
||||
repeat: true
|
||||
onTriggered: scope.update()
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user