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 embed rcc file to use with golang? #1220

Open MarkLTZ opened 3 years ago

MarkLTZ commented 3 years ago

Hello!

I would like to embed rcc file in my project and use it with core.QResource_RegisterResource2 but I'm not able to find a documentation for this and I'm also new on golang.

At the moment I'm using:

core.QResource_RegisterResource("resources.rcc", "")

but with this I must ship also resources.rcc file with my executable to work.

How can I embed it? Any help?

Thanks, Mark