func main() { qt5.Main(func() { go ui_main() qt5.Run() exit <- true }) }
func main() { qt5.Main(func() { w := qt5.NewWidget() w.OnPaintEvent(func(e *qt5.PaintEvent) { paint := qt5.NewPainter() defer paint.Close() paint.Begin(w) pen := qt5.NewPen() pen.SetColor(color.RGBA{255, 128, 0, 0}) pen.SetWidth(2) fmt.Println(pen, pen.Color(), pen.Width()) paint.SetPen(pen) brush := qt5.NewBrush() brush.SetStyle(qt5.SolidPattern) brush.SetColor(color.RGBA{128, 128, 0, 255}) paint.SetBrush(brush) paint.DrawRect(qt5.Rect{10, 10, 100, 100}) }) w.SetSize(qt5.Size{400, 400}) w.Show() qt5.Run() }) }
func main() { fmt.Println(qt5.Version()) qt5.Main(func() { go main_ui() qt5.Run() exit <- true }) }
func main() { qt5.Main(func() { w := qt5.NewWidget() w.SetWindowTitle(qt5.Version()) w.SetSizev(300, 200) defer w.Close() w.Show() qt5.Run() }) }
func main() { qt5.Main(func() { lcd := qt5.NewLCDNumber() lcd.SetWindowTitle("LCDNumber") lcd.SetSizev(200, 50) lcd.SetSegmentStyle(1) lcd.DisplayWithString("2016") defer lcd.Close() lcd.Show() qt5.Run() }) }
func main() { qt5.Main(func() { p := qt5.NewProgressBar() p.SetWindowTitle("ProgressBar") //p.SetOrientation(qt5.Vertical) p.SetRange(0, 100) p.SetValue(50) p.SetFormat("%v/%m") p.SetGeometryv(30, 40, 200, 25) //p.SetTextVisible(false) //p.SetSizev(300, 200) defer p.Close() p.Show() qt5.Run() }) }
func main() { py.InitializeEx(false) defer py.Finalize() e := backend.GetEditor() log4go.AddFilter("stdout", log4go.DEBUG, log4go.NewConsoleLogWriter()) if sc, err := textmate.LoadTheme("../../3rdparty/bundles/TextMate-Themes/GlitterBomb.tmTheme"); err != nil { log4go.Error(err) } else { scheme = sc log4go.Debug("scheme: %v", scheme) } backend.OnNewWindow.Add(new_window) backend.OnNew.Add(new_view) backend.OnModified.Add(view_modified) go e.Init() qt5.Main(func() { w := e.NewWindow() w.OpenFile("main.go", 0) w.OpenFile("../../backend/editor.go", 0) qt5.Run() }) }
func main() { qt5.Main(ui_main) }
func main() { runtime.GOMAXPROCS(4) qt5.Main(main_ui) }