woboq / qmetaobject-rs

Integrate Qml and Rust by building the QMetaObject at compile time.
MIT License
620 stars 89 forks source link

Adding an example to illustrate custom QObject nesting #270

Closed aeyno closed 1 year ago

aeyno commented 1 year ago

After spending several days figuring out how to put a QObject inside another QObject's struct and finally finding out thanks to #26, I made a little example to illustrate how to do it. I hope it will help other users who are struggling to do something similar.

ogoffart commented 1 year ago

Thanks for the patch. Sorry for the delay.