diff --git a/examples/goroutine6/main.go b/examples/goroutine6/main.go index 3f3ecf0b..f5e79b13 100644 --- a/examples/goroutine6/main.go +++ b/examples/goroutine6/main.go @@ -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()