mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 08:58:37 +00:00
32 lines
331 B
Go
32 lines
331 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
|
|
|
|
wid.Show()
|
|
|
|
app.Exec()
|
|
|
|
fmt.Println("OK!")
|
|
}
|