Bug 445879

Summary: Support some of the built-in Qt types, when exposing them to Rust
Product: [Unmaintained] rust-qt-binding-generator Reporter: Mikhail Zolotukhin <mail>
Component: generalAssignee: Jos van den Oever <jos>
Status: RESOLVED INTENTIONAL    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Mikhail Zolotukhin 2021-11-21 21:16:24 UTC
SUMMARY

In particular, I wanted to use QJSValue type, so that I can call QML methods from the Rust side.
Comment 1 Jos van den Oever 2021-11-22 14:12:50 UTC
Calling QML code from Rust is out of scope. The design of RQBG is such that you can crate a data model in Rust, but the Rust does not know about the QML code. You can trigger functions in the QML by binding to property states. Calling QML from Rust is out of scope for the current design. However, if you have ideas for doing this is in a safe and simple way, I might add it.