therecipe / qt

Qt binding for Go (Golang) with support for Windows / macOS / Linux / FreeBSD / Android / iOS / Sailfish OS / Raspberry Pi / AsteroidOS / Ubuntu Touch / JavaScript / WebAssembly
GNU Lesser General Public License v3.0
10.5k stars 748 forks source link

How to run examples? #1240

Closed ghost closed 3 years ago

ghost commented 3 years ago

I executed go get -d -v github.com/therecipe/examples/... from the instructions in the Wiki (https://github.com/therecipe/qt/wiki/Getting-Started) but got error:

go get: github.com/therecipe/examples@none updating to
        github.com/therecipe/examples@v0.0.0-20200701200025-1b5d8d146c95: parsing go.mod: go.mod:3: require github.com/therecipe/qt: version "master" invalid: must be of the form v1.2.3
go.mod:5: require github.com/therecipe/qt/internal/binding/files/docs/5.13.0: version "master" invalid: must be of the form v1.2.3

How can I fix this?

go version go1.16.5 linux/amd64

evgeniygazetdinov commented 2 years ago

I support the question

evgeniygazetdinov commented 2 years ago

finded solving?

razsteinmetz commented 1 year ago

Any news on solution?

oslyak commented 1 year ago

git clone https://github.com/therecipe/examples cd examples/

go run basic/widgets/main.go

This is the way to run that example.

But, so many other examples have errors like: i.ConnectDestroyTreeItem undefined (type *TreeItem has no field or method ConnectDestroyTreeItem)

It is so sad. (

It could be a greater project. So many stars and bugs at the first line...