5 ms·
Hopefully my experience could be useful, having tried rust-qt just a while ago on a project. Bottom line: it is usable. It is pretty trivial if you want to bui
by uranusjr 8y ago
Hopefully my experience could be useful, having tried rust-qt just a while ago on a project. Bottom line: it is usable.
It is pretty trivial if you want to build an almost purely QML app. As soon as you want to do some C++ stuff (e.g. registering new C++ classes, using QtWidgets), however, things go south very quickly. The main problem is that Qt has its own ideas about ownership (QObject-parent-stuff), and Rust really does not like that. You end of working a lot with raw pointers and boxes. It feels like you’re writing C++ but in Rust (if that makes sense).
Rust-qt is really nice IMO, and I would extremely encourage anyone interested to take a look, and provide more feedbacks and contributions to the maintainers (I am not one of them). Some non-trivial examples would help a lot. But expect sharp edges.