https://github.com/akhenakh/goqtgrpc
A QML app using gRPC as an interface to Go code
https://github.com/akhenakh/goqtgrpc
go grpc qml
Last synced: 2 months ago
JSON representation
A QML app using gRPC as an interface to Go code
- Host: GitHub
- URL: https://github.com/akhenakh/goqtgrpc
- Owner: akhenakh
- Created: 2025-01-28T00:13:34.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-29T03:08:43.000Z (over 1 year ago)
- Last Synced: 2025-01-29T04:19:26.771Z (over 1 year ago)
- Topics: go, grpc, qml
- Language: QML
- Homepage: https://blog.nobugware.com/post/2025/using-qt-qml-grpc-to-talk-to-your-app/
- Size: 104 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GoQtgRPC
An exploratory work to embed a Go gRPC server inside a C++ app using QML to interact with the gRPC API.

See [associated blogpost: Building Cross-Language Apps: Direct QML to gRPC Without C++](https://blog.nobugware.com/post/2025/using-qt-qml-grpc-to-talk-to-your-app/)
## Build
```sh
buf generate
cd cposlib && CGO_ENABLED=1 go build -buildmode=c-archive -o cposlib.a ./cposlib.go
cmake -B build .
make
```
## Pitfalls
- id conficting with qml id
- the GrpcHttp2Channel hostUri can't be changed
- timestamp.proto imports