<commit_before>#go-qt5
=====

##Introduction
go-qt5 is provides with qt5 bindings for Go programming language, based on visualfc's go-ui library.

Lua code that generates the wrappers (`uiobjs.go` and `cdrv.cpp`) can be found under `make`.

The wrapper code is by far incomplete, so pull requests are more than welcome. Adding new functionality usually consists of editing or adding files under `make/qt5`, and updating `make/make.lua` script, and making relevant changes in `qt5` and `qtdrv`.


##License
	go-qt5 lib BSD
	qtdrv lib LGPL

##Using go-qt5

###1. get & install go-qt5
	$ go get github.com/salviati/go-qt5
###2. build & install C layer
	$ cd $GOPATH/src/salviati/go-qt5/qtdrv
	$ qmake "CONFIG+=release"
	$ make
	# make install
###3.build go-qt5
	$ cd $GOPATH/src/salviati/go-qt5/qt5
	$ go install
###4.build examples
	$ cd $GOPATH/src/salviati/go-qt5/examples
	$ go run minimal.go

##A minimal example

	package main

	import (
	    "github.com/salviati/go-qt5/qt5"
    )
    
    func main() {
	    qt5.Main(func() {
		    w := qt5.NewWidget()
		    w.SetWindowTitle(qt5.Version())
		    w.SetSizev(300, 200)
		    defer w.Close()
		    w.Show()
		    qt5.Run()<commit_msg>fix path<commit_after>#go-qt5
=====

##Introduction
go-qt5 is provides with qt5 bindings for Go programming language, based on visualfc's go-ui library.

Lua code that generates the wrappers (`uiobjs.go` and `cdrv.cpp`) can be found under `make`.

The wrapper code is by far incomplete, so pull requests are more than welcome. Adding new functionality usually consists of editing or adding files under `make/qt5`, and updating `make/make.lua` script, and making relevant changes in `qt5` and `qtdrv`.


##License
	go-qt5 lib BSD
	qtdrv lib LGPL

##Using go-qt5

###1. get & install go-qt5
	$ go get github.com/salviati/go-qt5
###2. build & install C layer
	$ cd $GOPATH/src/github.com/salviati/go-qt5/qtdrv
	$ qmake "CONFIG+=release"
	$ make
	# make install
###3.build go-qt5
	$ cd $GOPATH/src/github.com/salviati/go-qt5/qt5
	$ go install
###4.build examples
	$ cd $GOPATH/src/github.com/salviati/go-qt5/examples
	$ go run minimal.go

##A minimal example

	package main

	import (
	    "github.com/salviati/go-qt5/qt5"
    )
    
    func main() {
	    qt5.Main(func() {
		    w := qt5.NewWidget()
		    w.SetWindowTitle(qt5.Version())
		    w.SetSizev(300, 200)
		    defer w.Close()
		    w.Show()
		    qt5.Run()
{'fraction_non_alphanumeric': 0.12656119900083265, 'fraction_numerical': 0.02497918401332223, 'mean_word_length': 3.2306338028169015, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1387963', 'n_tokens_mistral': 934, 'n_tokens_neox': 877, 'n_words': 258}