diff --git a/examples/goroutine6/main.go b/examples/goroutine6/main.go index 69802223..2a57f3e3 100644 --- a/examples/goroutine6/main.go +++ b/examples/goroutine6/main.go @@ -33,7 +33,7 @@ func main() { } button := qt.NewQPushButton5("start!", window.QWidget) - button.OnClicked1(func(bool) { + button.OnClicked(func() { button.SetDisabled(true) for i, label := range labels { go func(index int, qlabel *qt.QLabel) {