-
Suggestion
-
Resolution: Fixed
-
P2: Important
-
None
-
None
-
Foundation Sprint 136, Foundation Sprint 137, Foundation Sprint 138
We need a possibility to invoke rust functions from the QML side. In traditional Qt/QML these are functions marked as Q_INVOKABLE or Q_SLOTS.
The currently suggested API is to use an attribute of the form
#[qslot(cpp_name = "cppName")]
fn some_function(&mut self, ...) {
...
}
The function can be called with cppName from the QML side (Maybe remove cpp from the name?).
The function should be callable with common standard and Qt types as parameters.
We probably have to also make const qslots work.
- is required for
-
QTBUG-134769 As a dev, I need a simple way to add a Qt Quick UI to my Rust code
-
- Open
-
- resulted in
-
QTBUG-140030 Qt Quick for Rust: Handle return value of qinvokables
-
- Open
-