Skip to content
This repository

golang ui

branch: master
Octocat-spinner-32 examples make: add sync flag July 18, 2012
Octocat-spinner-32 make make: add sync flag July 18, 2012
Octocat-spinner-32 qtdrv make: add sync flag July 18, 2012
Octocat-spinner-32 ui update ui license to BSD July 13, 2012
Octocat-spinner-32 .gitignore add go-ui files July 12, 2012
Octocat-spinner-32 LICENSE add LICENSE July 13, 2012
Octocat-spinner-32 LICENSE.LGPL add LICENSE July 12, 2012
Octocat-spinner-32 README.md Update README.md November 03, 2013
README.md

go-ui 0.1.1

This project is closed.

Introduction

go-ui is a cross-platform golang ui tool kit, based on qt.

System

Windows / Linux / MacOS X

License

go-ui lib BSD
qtdrv lib LGPL

Build go-ui and examples

1.get go-ui

$ go get github.com/visualfc/go-ui

2.build qtdrv, need install QtSDK

$ cd go-ui/qtdrv
$ qmake "CONFIG+=release"
$ make

3.build go-ui

$ cd go-ui/ui
$ go install

4.build examples

$ cd go-ui/examples
$ go build -ldflags '-r ../lib' minimal.go
$ ./minimal

Examples

package main

import (
    "github.com/visualfc/go-ui/ui"
)

func main() {
    ui.Main(func() {
        w := ui.NewWidget()
        w.SetWindowTitle(ui.Version())
        w.SetSizev(300, 200)
        defer w.Close()
        w.Show()
        ui.Run()
    })
}
Something went wrong with that request. Please try again.