1
0
mirror of https://github.com/mappu/miqt.git synced 2025-01-11 09:50:38 +00:00

36 lines
386 B
Go
Raw Normal View History

2023-10-23 11:00:00 +13:00
package main
import (
"fmt"
"os"
)
func main() {
app := NewQApplication(os.Args)
2024-08-06 10:24:15 +12:00
_ = app
2023-10-23 11:00:00 +13:00
/*
btn := NewQPushButton("Hello world!", QWidget{})
fmt.Printf("%#v\n", btn)
btn.Show()
*/
wid := NewQWidget()
_ = wid
2024-08-06 10:24:15 +12:00
btn := NewQPushButton("Hello world!", wid)
_ = btn
btn.OnPressed(func() {
fmt.Println("Clicked!")
})
2023-10-23 11:00:00 +13:00
wid.Show()
app.Exec()
fmt.Println("OK!")
}