go-qml / qml

QML support for the Go language
Other
1.96k stars 189 forks source link

Embedded QML? #122

Closed averrin closed 9 years ago

averrin commented 9 years ago

Hello. Can i embed qml file to build me script into one binary file?

janimo commented 9 years ago

http://blog.labix.org/2014/09/26/packing-resources-into-go-qml-binaries

niemeyer commented 9 years ago

Right, and you can also just use a string in your Go file and load it with Engine.LoadString.

ghost commented 9 years ago

blog.labix.org seems to be down. Webcache: http://webcache.googleusercontent.com/search?q=cache:http://blog.labix.org/2014/09/26/packing-resources-into-go-qml-binaries

A link to the godoc: http://godoc.org/gopkg.in/qml.v1#ResourcesPacker