Rust binding for Qt : How to mix QML with Rust
summary
Shows a working Rust-to-QML bridge called qmetaobject-rs that exposes Rust structs as QML types, implements properties, signals and methods, and bundles QML assets into a binary. Uses Rust custom derive to generate Qt metaobjects, the cpp macro to emit C++ glue, and a small C ABI layer for FFI; heavy-duty C++ APIs remain missing so some unsafe wrappers are still required. Demonstrates a QAbstractListModel-style example and a loadable QML plugin that runs successfully.
AI-written summary · about
chapters (11)
- 0:00Introduction and speaker background
- 1:05What is Rust and its benefits
- 5:02Existing Rust-Qt binding solutions
- 6:52Introducing QtRustTrait for QML
- 13:08Key Rust concepts for Qt
- 15:38Integrating Rust with C++
- 17:26Building a QML application in Rust
- 19:36QML plugins and Rust
- 20:22Q&A: Memory model and ownership
- 21:59Q&A: Unsupported C++ features
- 23:20Q&A: Rust-to-C++ bindings
related talks
45mC++ Rust and Qt Easier than you think
43mC++, QML and static reflection
01h 22mArranging Items, QML Components and Debugging QML (part 4/4)
04mMeet Qt
52mQt's moc and QMetaObject reflection
53mQt Quick Best Practices and Design Patterns
49mQt Quick Best Practices and Design Patterns
53mC++/Rust Interop: A Practical Guide to Bridging the Gap Between C++ and Rust
