miqt/cmd/handbindings/main.go

36 lines
386 B
Go

package main
import (
"fmt"
"os"
)
func main() {
app := NewQApplication(os.Args)
_ = app
/*
btn := NewQPushButton("Hello world!", QWidget{})
fmt.Printf("%#v\n", btn)
btn.Show()
*/
wid := NewQWidget()
_ = wid
btn := NewQPushButton("Hello world!", wid)
_ = btn
btn.OnPressed(func() {
fmt.Println("Clicked!")
})
wid.Show()
app.Exec()
fmt.Println("OK!")
}