Bug 445879 - Support some of the built-in Qt types, when exposing them to Rust
Summary: Support some of the built-in Qt types, when exposing them to Rust
Status: RESOLVED INTENTIONAL
Alias: None
Product: rust-qt-binding-generator
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Jos van den Oever
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-21 21:16 UTC by Mikhail Zolotukhin
Modified: 2021-11-22 14:12 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.