Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/github-cxx-qt-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- uses: DavidAnson/markdownlint-cli2-action@v20
- uses: DavidAnson/markdownlint-cli2-action@v21
with:
globs: '**/*.md'

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ Versions below Qt 5.15 LTS are *explicitly unsupported*.

## Comparison to other Rust Qt bindings

| Project | Integrate into C++ codebase | Safe Rust | QML | QWidgets | Maintained<sup>1</sup> | Binding mechanism |
|-------- | ---------------------------- | --------- | --- | -------- | ---------------------- | ----------------- |
| CXX-Qt | ✔ | ✔ | ✔ | limited<sup>2</sup> | ✔ | [cxx](https://cxx.rs) plus additional code generation to implement QObject subclasses in Rust and bind them to C++ |
| Project | Integrate into C++ codebase | Safe Rust | QML | QWidgets | Maintained<sup>1</sup> | Binding mechanism |
| ------- | --------------------------- | --------- | --- | -------- | ---------------------- | ----------------- |
| CXX-Qt | ✔ | ✔ | ✔ | limited<sup>2</sup> | ✔ | [cxx](https://cxx.rs) plus additional code generation to implement QObject subclasses in Rust and bind them to C++ |
| [qmetaobject](https://github.com/woboq/qmetaobject-rs/) | ✗ | ✔ | ✔ | ✗ | ✔ | [cpp](https://github.com/mystor/rust-cpp) macro to write C++ inline in Rust, plus Rust macros to create QObject subclasses from Rust structs |
| [Rust Qt Binding Generator](https://invent.kde.org/sdk/rust-qt-binding-generator) | ✔ | ✔ | ✔ | limited<sup>2</sup> | ✗ | generates Rust traits and C++ bindings from JSON description of QObject subclass |
| [rust-qt](https://rust-qt.github.io/) | ✗ | ✗ | ✔ | ✔ | ✗ | [ritual](https://rust-qt.github.io/ritual/) to generate unsafe Rust bindings from C++ headers |
Expand Down
6 changes: 3 additions & 3 deletions book/src/concepts/inheritance.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ This way methods can be overridden, declared as `virtual` or `final`.

| C++ keyword | CXX-Qt attribute |
|-------------|-------------------------------|
| `override` | `#[cxx_override]` |
| `virtual` | `#[cxx_virtual]` |
| `final` | `#[cxx_final]` |
| `override` | `#[cxx_override]` |
| `virtual` | `#[cxx_virtual]` |
| `final` | `#[cxx_final]` |

The example below overrides the [`data`](https://doc.qt.io/qt-6/qabstractitemmodel.html#data) method inherited from the `QAbstractListModel`.

Expand Down
Loading