QtWidgets? #1330
Replies: 3 comments
-
Those are from ritual, a different framework which is no longer maintained. |
Beta Was this translation helpful? Give feedback.
-
@jnbooth yes sorry I was saying they are no longer maintained so I need an alternative. Can you guys fill that role? |
Beta Was this translation helpful? Give feedback.
-
It is possible to use CXX-Qt with QtWidgets, we don't have that many types prewrapped, but you can quite easily use the However what I would say is that most of the QtWidgets API tends to use raw pointers which with CXX then leads to a load of unsafe code, so it tends not to be beneficial to write the QtWidgets UI code in Rust (while it is totally possible). Instead consider continuing to write the UI and glue code in C++, then have your Rust code provide the backend via Qt abstractions. So eg CXX-Qt is well suited to writing / deriving a QAbstractListModel in Rust, then you can use that type in C++ QtWidgets like normal. You can do similar for other things like QObjects or other "backend" abstractions. And note most of these abstractions are the same for QtWidgets and QML so the backend code can be shared. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi I'm on kde plasma 6 and I was wondering...
Is someone was working on writing a wrapper around qt widgets?
I see there is the following but they are outdated...
thanks.
Beta Was this translation helpful? Give feedback.
All reactions