Esempio n. 1
0
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()
	})
}
Esempio n. 2
0
func main() {
	fmt.Println(qt5.Version())
	qt5.Main(func() {
		go main_ui()
		qt5.Run()
		exit <- true
	})
}
Esempio n. 3
0
func ui_main() {
	w := qt5.NewWidget()
	w.SetWindowTitle(qt5.Version())
	w.SetSizev(300, 200)
	defer w.Close()
	w.Show()
	<-exit
}
Esempio n. 4
0
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
}