5k3105 / Pipeline-Editor

Visualy create and connect nodes. Generates xml for python multiprocessing pipeline. (needs rewrite, lots of dead code, specialized application posted only for example purposes)
11 stars 0 forks source link

this looks cool #1

Open davidcoble opened 3 years ago

davidcoble commented 3 years ago

when I try to build it, I get this:

Pipeline-Editor$ go version
go version go1.15.2 linux/amd64

Pipeline-Editor$ go build
# github.com/5k3105/Pipeline-Editor/graphpanel
graphpanel/lineedit.go:14:79: cannot use true (type bool) as type *bool in argument to graphpanel.NodeList.QListWidget.CurrentItem().Data(int(core.Qt__UserRole)).ToInt
graphpanel/nodelist.go:15:53: cannot use true (type bool) as type *bool in argument to current.Data(int(core.Qt__UserRole)).ToInt
graphpanel/tblargs.go:134:10: undefined: NewDelegate
graphpanel/tblargs.go:157:45: cannot use text (type string) as type core.QBitArray_ITF in argument to core.NewQVariant14:
        string does not implement core.QBitArray_ITF (missing QBitArray_PTR method)
graphpanel/tblargs.go:185:41: cannot use text (type string) as type core.QBitArray_ITF in argument to core.NewQVariant14:
        string does not implement core.QBitArray_ITF (missing QBitArray_PTR method)
graphpanel/tblargs.go:196:30: cannot use "Source" (type string) as type core.QBitArray_ITF in argument to core.NewQVariant14:
        string does not implement core.QBitArray_ITF (missing QBitArray_PTR method)
graphpanel/tblargs.go:198:30: cannot use "Value" (type string) as type core.QBitArray_ITF in argument to core.NewQVariant14:
        string does not implement core.QBitArray_ITF (missing QBitArray_PTR method)
graphpanel/tblargs.go:201:38: cannot use "column" + strconv.Itoa(section + 1) (type string) as type core.QBitArray_ITF in argument to core.NewQVariant14:
        string does not implement core.QBitArray_ITF (missing QBitArray_PTR method)
graphpanel/tblargs.go:206:42: cannot use strconv.Itoa(section + 1) (type string) as type core.QBitArray_ITF in argument to core.NewQVariant14:
        string does not implement core.QBitArray_ITF (missing QBitArray_PTR method)
graphpanel/tblargs.go:208:30: cannot use "*" (type string) as type core.QBitArray_ITF in argument to core.NewQVariant14:
        string does not implement core.QBitArray_ITF (missing QBitArray_PTR method)
graphpanel/tblargs.go:208:30: too many errors
5k3105 commented 3 years ago

this hasn't been updated to the latest go qt api. therecipie/qt has changed these NewQVariant call numbers. those bools should be 'nil' instead of true. NewQVariant14 now converts a different data type in the new api, so the new call may be NewQVariant9, not sure. look in the go qt api for the new names.

5k3105 commented 3 years ago

Also, this will not 'go build'. You need to install go qt library and 'qtdeploy': https://github.com/therecipe/qt