#cxx-qt #cpp #qml #qt

sys cxx-qt

Safe interop between Rust and Qt

15 releases

new 0.7.2 Apr 29, 2025
0.7.1 Mar 5, 2025
0.7.0 Oct 30, 2024
0.6.1 Apr 19, 2024
0.1.0 Dec 3, 2021

#805 in GUI

Download history 48/week @ 2025-01-06 62/week @ 2025-01-13 115/week @ 2025-01-20 50/week @ 2025-01-27 103/week @ 2025-02-03 150/week @ 2025-02-10 137/week @ 2025-02-17 134/week @ 2025-02-24 287/week @ 2025-03-03 368/week @ 2025-03-10 219/week @ 2025-03-17 369/week @ 2025-03-24 195/week @ 2025-03-31 147/week @ 2025-04-07 193/week @ 2025-04-14 158/week @ 2025-04-21

713 downloads per month
Used in 2 crates

MIT/Apache

46KB
600 lines

This crate and its associated crates provide a framework for generating QObjects from Rust.

See the book for more information.


CXX-Qt

CXX-Qt is a library that automatically generates code to transfer data between Rust and C++ through common interfaces such as QObjects that can be exposed directly into QML. It relies on the CXX crate internally to achieve this and thus it is recommended that any interactions with Qt that are not covered by the built-in code generators should be done directly in C++ and connected to relevant Rust logic by writing additional CXX code. The CXX-Qt build system is based on CMake, but is compatible with CXX on its own as well.

Dependencies

~1.7–3.5MB
~62K SLoC