Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #1283

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open

Develop #1283

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
42 changes: 13 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ Introduction

[Go](https://en.wikipedia.org/wiki/Go_(programming_language)), also known as Golang, is a programming language designed at Google.

[therecipe/qt](https://github.com/therecipe/qt) allows you to write Qt applications entirely in Go, [JavaScript/TypeScript](https://github.com/therecipe/entry), [Dart/Flutter](https://github.com/therecipe/flutter), [Haxe](https://github.com/therecipe/haxe) and [Swift](https://github.com/therecipe/swift)
[bluszcz/cutego](https://github.com/bluszcz/cutego) allows you to write Qt applications entirely in Go or JavaScript.

Beside the language bindings provided, `therecipe/qt` also greatly simplifies the deployment of Qt applications to various software and hardware platforms.
Beside the language bindings provided, `bluszcz/cutego` also greatly simplifies the deployment of Qt applications to various software and hardware platforms.

At the time of writing, almost all Qt functions and classes are accessible, and you should be able to find everything you need to build fully featured Qt applications.

Impressions
-----------

[Gallery](https://github.com/therecipe/qt/wiki/Gallery) of example applications.
[Gallery](https://github.com/bluszcz/cutego/wiki/Gallery) of example applications.

[JavaScript Demo](https://therecipe.github.io/entry) | *[source](https://github.com/therecipe/entry)*

Expand All @@ -23,49 +23,33 @@ Installation

The following instructions assume that you already installed [Go](https://golang.org/dl/) and [Git](https://git-scm.com/downloads)

#### (Experimental) cgo-less version (try this first, if you are new and want to test the binding)

##### Windows

```powershell
go get -ldflags="-w" github.com/therecipe/examples/basic/widgets && for /f %v in ('go env GOPATH') do %v\bin\widgets.exe
```

##### macOS/Linux

```bash
go get -ldflags="-w" github.com/therecipe/examples/basic/widgets && $(go env GOPATH)/bin/widgets
```

#### Default version

##### Windows [(more info)](https://github.com/therecipe/qt/wiki/Installation-on-Windows)
##### Windows [(more info)](https://github.com/bluszcz/cutego/wiki/Installation-on-Windows)

```powershell
set GO111MODULE=off
go get -v github.com/therecipe/qt/cmd/... && for /f %v in ('go env GOPATH') do %v\bin\qtsetup test && %v\bin\qtsetup -test=false
go get -v github.com/bluszcz/cutego/cmd/... && for /f %v in ('go env GOPATH') do %v\bin\qtsetup test && %v\bin\qtsetup -test=false
```

##### macOS [(more info)](https://github.com/therecipe/qt/wiki/Installation-on-macOS)
##### macOS [(more info)](https://github.com/bluszcz/cutego/wiki/Installation-on-macOS)

```bash
export GO111MODULE=off; xcode-select --install; go get -v github.com/therecipe/qt/cmd/... && $(go env GOPATH)/bin/qtsetup test && $(go env GOPATH)/bin/qtsetup -test=false
export GO111MODULE=off; xcode-select --install; go get -v github.com/bluszcz/cutego/cmd/... && $(go env GOPATH)/bin/qtsetup test && $(go env GOPATH)/bin/qtsetup -test=false
```

##### Linux [(more info)](https://github.com/therecipe/qt/wiki/Installation-on-Linux)
##### Linux [(more info)](https://github.com/bluszcz/cutego/wiki/Installation-on-Linux)

```bash
export GO111MODULE=off; go get -v github.com/therecipe/qt/cmd/... && $(go env GOPATH)/bin/qtsetup test && $(go env GOPATH)/bin/qtsetup -test=false
export GO111MODULE=off; go get -v github.com/bluszcz/cutego/cmd/... && $(go env GOPATH)/bin/qtsetup test && $(go env GOPATH)/bin/qtsetup -test=false
```

Resources
---------

- [Installation](https://github.com/therecipe/qt/wiki/Installation)
- [Getting Started](https://github.com/therecipe/qt/wiki/Getting-Started)
- [Wiki](https://github.com/therecipe/qt/wiki)
- [Installation](https://github.com/bluszcz/cutego/wiki/Installation)
- [Getting Started](https://github.com/bluszcz/cutego/wiki/Getting-Started)
- [Wiki](https://github.com/bluszcz/cutego/wiki)
- [Qt Documentation](https://doc.qt.io/qt-5/classes.html)
- [FAQ](https://github.com/therecipe/qt/wiki/FAQ)
- [FAQ](https://github.com/bluszcz/cutego/wiki/FAQ)
- [#qt-binding](https://gophers.slack.com/messages/qt-binding/details) Slack channel ([invite](https://invite.slack.golangbridge.org)\)

Deployment Targets
Expand Down
4 changes: 2 additions & 2 deletions androidextras/androidextras.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
package androidextras

import (
"github.com/therecipe/qt"
"github.com/therecipe/qt/core"
"github.com/bluszcz/cutego"
"github.com/bluszcz/cutego/core"
"strings"
"unsafe"
)
Expand Down
4 changes: 2 additions & 2 deletions androidextras/androidextras_android.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ package androidextras
import "C"
import (
"errors"
"github.com/therecipe/qt"
"github.com/therecipe/qt/core"
"github.com/bluszcz/cutego"
"github.com/bluszcz/cutego/core"
"strings"
"unsafe"
)
Expand Down
2 changes: 1 addition & 1 deletion androidextras/utils-androidextras_android.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strings"
"unsafe"

"github.com/therecipe/qt"
"github.com/bluszcz/cutego"
)

func assertion(key int, input ...interface{}) (unsafe.Pointer, func()) {
Expand Down
8 changes: 5 additions & 3 deletions bluetooth/bluetooth.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
package bluetooth

import (
"github.com/therecipe/qt/core"
"github.com/therecipe/qt/internal"
"github.com/therecipe/qt/network"
"github.com/bluszcz/cutego"
"github.com/bluszcz/cutego/core"
"github.com/bluszcz/cutego/network"
"reflect"
"strings"
"unsafe"
)

Expand Down
9 changes: 5 additions & 4 deletions charts/charts.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
package charts

import (
"github.com/therecipe/qt/core"
"github.com/therecipe/qt/gui"
"github.com/therecipe/qt/internal"
"github.com/therecipe/qt/widgets"
"github.com/bluszcz/cute"
"github.com/bluszcz/cute/core"
"github.com/bluszcz/cute/gui"
"github.com/bluszcz/cute/widgets"
"strings"
"unsafe"
)

Expand Down
6 changes: 3 additions & 3 deletions cmd/qtdeploy/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import (
"runtime"
"strings"

"github.com/therecipe/qt/internal/cmd"
"github.com/therecipe/qt/internal/cmd/deploy"
"github.com/bluszcz/cutego/internal/cmd"
"github.com/bluszcz/cutego/internal/cmd/deploy"

"github.com/therecipe/qt/internal/utils"
"github.com/bluszcz/cutego/internal/utils"
)

func main() {
Expand Down
6 changes: 3 additions & 3 deletions cmd/qtminimal/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
"runtime"
"strings"

"github.com/therecipe/qt/internal/cmd"
"github.com/therecipe/qt/internal/cmd/minimal"
"github.com/bluszcz/cutego/internal/cmd"
"github.com/bluszcz/cutego/internal/cmd/minimal"

"github.com/therecipe/qt/internal/utils"
"github.com/bluszcz/cutego/internal/utils"
)

func main() {
Expand Down
6 changes: 3 additions & 3 deletions cmd/qtmoc/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
"runtime"
"strings"

"github.com/therecipe/qt/internal/cmd"
"github.com/therecipe/qt/internal/cmd/moc"
"github.com/bluszcz/cutego/internal/cmd"
"github.com/bluszcz/cutego/internal/cmd/moc"

"github.com/therecipe/qt/internal/utils"
"github.com/bluszcz/cutego/internal/utils"
)

func main() {
Expand Down
6 changes: 3 additions & 3 deletions cmd/qtrcc/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
"runtime"
"strings"

"github.com/therecipe/qt/internal/cmd"
"github.com/therecipe/qt/internal/cmd/rcc"
"github.com/bluszcz/cutego/internal/cmd"
"github.com/bluszcz/cutego/internal/cmd/rcc"

"github.com/therecipe/qt/internal/utils"
"github.com/bluszcz/cutego/internal/utils"
)

func main() {
Expand Down
6 changes: 3 additions & 3 deletions cmd/qtsetup/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
"runtime"
"strings"

"github.com/therecipe/qt/internal/cmd"
"github.com/therecipe/qt/internal/cmd/setup"
"github.com/bluszcz/cutego/internal/cmd"
"github.com/bluszcz/cutego/internal/cmd/setup"

"github.com/therecipe/qt/internal/utils"
"github.com/bluszcz/cutego/internal/utils"
)

func main() {
Expand Down
Loading