# KDAB/cxx-qt

Safe interop between Rust and Qt

Repository: https://github.com/KDAB/cxx-qt
Canonical: https://ross.abutalabs.com/products/cxx-qt
Homepage: https://kdab.github.io/cxx-qt/book/
Language: Rust
License Family: other
Topics: rust, qt, qt5, qt6
Last push: 2026-08-24T16:53:41+00:00

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 87, longevity 100
- inputs: {"age_days": 1736, "days_push": 9, "days_rel": 9, "gap_med": 68.5, "n_releases_24m": 9}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1537, forks 108 (observed 2026-08-28T04:05:00.126308+00:00)

## What it is
CXX-Qt is a set of Rust crates providing safe bidirectional bindings between Rust and Qt via CXX. It lets developers implement QObject subclasses in Rust usable from C++, QML, and JavaScript, with code generation for signals, slots, and properties.

## Use cases
- build a Qt GUI application with business logic in Rust
- integrate Rust code into an existing C++ Qt application
- expose Rust structs as QML types with properties and signals
- call Qt C++ APIs from Rust safely
- create cross-platform desktop apps mixing Rust and QML

## When to choose
- you want safe, idiomatic Rust-Qt interop rather than raw FFI bindings
- you need QObject subclasses implemented in Rust for QML or C++ use
- you're building a Qt app with Cargo or integrating Rust into a CMake Qt project

## When to avoid
- you need a pure-Rust GUI toolkit without C++ dependencies
- you only need simple C++ FFI without Qt-specific features (plain CXX suffices)
- you target platforms where Qt and Rust toolchains aren't both supported

## Facets
- artifact type: library
- maturity: active
- function: sdk, developer-tools, build-tool
- domain: cross-platform, desktop-applications, developer-tools
- platform: windows, rust, cpp, wasm
- tags: qt, qml, ffi, cxx, bindings, gui, signals-slots, linux, macos

## Member repositories
- KDAB/cxx-qt (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:00.126308+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:30:59.667287+00:00, confidence not recorded.
  - readme: https://github.com/KDAB/cxx-qt (fetched 2026-08-28T04:05:00.126308+00:00, sha f60dec38222c)
  - homepage: https://kdab.github.io/cxx-qt/book/ (fetched 2026-08-29T11:32:40.577184+00:00, sha 24de5de4b196)
  - registry_crates: https://crates.io/api/v1/crates/cxx-qt (fetched 2026-08-29T11:32:40.586171+00:00, sha 328b1a4e233d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
