Post #2488770
2026-04-26 18:13 UTC
@marmarta@chaos.social @kdab@techhub.social are experts of both Qt and Rust, Leon Matthes doesn't seem to be present on Fediverse.
Replies (1)
-
@kdab@techhub.social 2026-04-29 09:45
@michalfita@mastodon.social @marmarta@chaos.social Qt Widgets can be used from CXX-Qt, but since much of the API relies on raw pointers, it can result in a lot of unsafe Rust — essentially just writing C++ in Rust — which offers little benefit on the UI side. If you really need Qt Widgets, a better approach is to keep the GUI logic in C++ while moving the models and backend to Rust. That works well, as things like QAbstractListModels can be exposed cleanly through CXX-Qt. If you have more questions, feel free to join the discussion on the CXX-Qt Zulip https://cxx-qt.zulipchat.com/ or open a GitHub discussion.