func main() { fmt.Println(qt5.Version()) qt5.Main(func() { w := qt5.NewWidget() w.SetWindowTitle(qt5.Version()) w.SetSizev(300, 200) defer w.Close() w.Show() qt5.Run() }) }
func main() { fmt.Println(qt5.Version()) qt5.Main(func() { go main_ui() qt5.Run() exit <- true }) }
func ui_main() { w := qt5.NewWidget() w.SetWindowTitle(qt5.Version()) w.SetSizev(300, 200) defer w.Close() w.Show() <-exit }
func ui_main() { w := loadUIFile("layouts/testwidget.ui") name := w.Name() fmt.Println(name) w.SetWindowTitle(qt5.Version()) w.SetSizev(300, 200) defer w.Close() w.Show() <-exit }