lcdclock6: Update with private signal

This commit is contained in:
Rick Calixte 2025-05-24 15:26:54 -04:00
parent 93ce2040d8
commit e6b61cd339
No known key found for this signature in database

View File

@ -20,7 +20,6 @@ func main() {
hbox := qt.NewQHBoxLayout(widget)
lcd := qt.NewQLCDNumber(widget)
lcd.SetFont(qt.NewQFont6("DejaVu Serif", 14))
lcd.SetStyleSheet("background-color: #729fcf; color: white;")
time := qt.QTime_CurrentTime()
@ -36,7 +35,7 @@ func main() {
timer := qt.NewQTimer2(widget.QObject)
timer.Start(1000)
timer.OnTimerEvent(func(super func(param1 *qt.QTimerEvent), param1 *qt.QTimerEvent) {
timer.OnTimeout(func() {
time := qt.QTime_CurrentTime()
defer time.Delete()