GoQt is golang bindings to the Qt cross-platform application framework.
- Version: 0.1
- Author: visualfc
GoQt project current is experiment.
GoQt is a GUI toolkit for the Go programming language. It allows Go programmers to create programs with a robust, highly functional graphical user interface, simply and easily. It is implemented as a Golang extension module (cgo code) that wraps the popular Qt cross platform GUI library, which is written in C++.
Like Golang and Qt, GoQt is Open Source. The Golang extension module(cgo code) under the BSD license. The C++ bindings library under the LGPL license.
- Windows x86 (32-bit or 64-bit)
- Linux x86 (32-bit or 64-bit)
- MacOS X10.6
- Go1.5.2
-
Qt4.8.5
-
Qt5.5.1
My test Qt4.8.5 on Windows Linux and MacOS X My test Qt5.5.1 only on Windows.
> go get github.com/visualfc/goqt
> cd goqt\qtdrv
> qmake "CONFIG+=release"
> make
> cd goqt\tools\rcc
> qmake "CONFIG+=release"
> make
> cd goqt\ui
> go install -v
> cd goqt\examples\minimal
> build.bat
> ..\..\bin\minimal.exe
> go get github.com/visualfc/goqt
> cd goqt/qtdrv
> qmake "CONFIG+=release"
> make
> cd goqt/tools/rcc
> qmake "CONFIG+=release"
> make
> cd goqt/ui
> go install -v
> cd goqt/examples/minimal
> build.sh
> ../../bin/minimal
> go get github.com/visualfc/goqt
> cd goqt/qtdrv
> qmake -spec macx-g++ "CONFIG+=release"
> make
> cd goqt/tools/rcc
> qmake -spec macx-g++ "CONFIG+=release"
> make
> cd goqt/ui
> go install -v
> cd goqt/examples/minimal
> build.sh
> ../../bin/minimal
package main
import (
"fmt"
"runtime"
"github.com/visualfc/goqt/ui"
)
func main() {
ui.Run(func() {
info := fmt.Sprintf("Hello GoQt Version %v \ngo verison %v %v/%v", ui.Version(), runtime.Version(), runtime.GOOS, runtime.GOARCH)
lable := ui.NewLabel()
lable.SetText(info)
hbox := ui.NewHBoxLayout()
hbox.AddWidget(lable)
widget := ui.NewWidget()
widget.SetLayout(hbox)
widget.Show()
})
}
- Source code
- https://github.com/visualfc/goqt
- Examples
- https://github.com/visualfc/goqt/tree/master/examples
- LiteIDE
- https://github.com/visualfc/liteide