goroutine6: use simpler downcasts

This commit is contained in:
mappu 2024-12-29 18:25:07 +13:00
parent 8777a73081
commit f71dc1c303

View File

@ -20,7 +20,7 @@ func main() {
widget := qt.NewQWidget(window.QWidget)
var layout = qt.NewQVBoxLayout2()
widget.SetLayout(layout.QBoxLayout.QLayout)
widget.SetLayout(layout.QLayout)
window.SetCentralWidget(widget)
labels := make([]*qt.QLabel, threadcount)
@ -45,7 +45,7 @@ func main() {
}(i, label)
}
})
widget.Layout().AddWidget(button.QAbstractButton.QWidget)
widget.Layout().AddWidget(button.QWidget)
window.Show()