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