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

[Question] Adding third party qt libraries to binding #1236

Open Moonlight63 opened 3 years ago

Moonlight63 commented 3 years ago

Hello, I am just getting started on my journey to learn both Go and Qt, so I am a bit confused about some things. I have mostly everything figured out when it comes to installing and using the binding to run a Qt gui from Go, but I am also experimenting with something that I just can't figure out. Is it possible to add an additional library to the binding code to be generated to use within the Qt gui? Specifically, I am wanting to use https://github.com/KDAB/KDDockWidgets to build my ui, but I am not very great at cpp so want to write everything in go (duh). I am at the point where I can successfully use qt in go, and I can build and use KDDW in Qt by linking the compiled library to a qt project in cmake, but I have not fully figured out how to use the compiled KDDW library -> in Qt -> in Go. Is this possible? How would you go about doing this?

Thank you for your time. I am still learning how this all fits together, so any help would be much appreciated.