Our great sponsors
cxx-qt | ritual | |
---|---|---|
28 | 6 | |
907 | 1,196 | |
6.6% | 0.9% | |
9.6 | 0.0 | |
3 days ago | about 1 year ago | |
Rust | Rust | |
- | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
cxx-qt
- Cxx-Qt: Use Qt from Rust
-
Qt 6.6 and 6.7 Make QML Faster Than Ever: A New Benchmark and Analysis
My employer, KDAB, is building an excellent Rust binding for Qt: https://github.com/KDAB/cxx-qt
-
I like rust but want to use Qt.
You can use cxx-qt or qmetaobject-rs. Or use Slint
-
Build a desktop app with Qt and Rust
Rust has several Qt bindings. The most popular are Ritual, CXX-Qt, and qmetaobject. Ritual is not maintained anymore, and qmetaobject doesn't support QWidgets. So CXX-Qt is our best bet for now.
-
DAW Frontend Development Struggles
Qt bindings for Rust also exist, although I'm not sure how mature they are: https://github.com/KDAB/cxx-qt/
-
Build a desktop app with Qt and Rust - LogRocket Blog
We're getting closer, but you're still likely to run into missing features in CXX-Qt at this point. If you do, please report it on GitHub!
- GUI development with Rust and GTK 4
-
Who "owns" Rust ?
This is no longer required in CXX-Qt as of this week (https://github.com/KDAB/cxx-qt/pull/428). Next release coming soon.
-
The first issue of Rust Magazine has been published 🎉🎉
From my understanding KDAB isn't trying to "replace" Qt. They're working on cxx-qt to make using Qt and Rust together much easier.
-
Rust: State of GUI, December 2022 – KAS blog
I second this. I wrote an internal Qt/QML app that ran on Windows, Linux, Android, and Raspberry Pis. We had ~20 Raspberry Pi's running this app in kiosk mode. If only KDAB/cxx-qt[1] were ready there, I would have done as much as possible in rust .
- [1] https://github.com/KDAB/cxx-qt/
ritual
-
Question about including parent directory C++ files in Rust crate
For your inspiration to get c++ code in a crate: https://github.com/rust-qt/examples uses ritual build https://github.com/rust-qt/ritual which integrates qt c++ stuff into the above cargo qt rust examples. I would like to highlight the todo list example. Build and run it verbosely with "--verbose --verbose".
-
CXX-Qt: safe Rust bindings for Qt
It is great to see how many people want to bring Qt support to Rust and are trying to do so, and I hope that these folks succeed, but it’s wearisome to me how they each create a new project instead of working with others who are already in this problem space. Of the half-dozen or so[0] existing attempts so far to create Qt bindings to Rust, none of them have actually succeeded because they’ve either been abandoned midway or limit their support to QML. Ritual[1] is the only crate I’ve seen that attempts to actually expose the whole Qt API, but it’s pretty awful to use, incomplete, and dead.
Rust doesn’t need more Qt crates. It needs one Qt crate that is complete and works well. (Or, ideally, a native Rust cross-platform GUI crate that works as well as Qt, but that’s an even longer and harder task.)
[0] https://lib.rs/search?q=qt
[1] https://github.com/rust-qt/ritual
-
Use a CPP library from Rust
Just wanted to add another vote for https://github.com/rust-qt/ritual that 0OOO00000OO00O0O0OOO/ mentioned below.
-
GUI liblary for qt ?
There was a QT library, rust-qt (that was officially supported I believe), the bindings being made with Ritual. There is an open issue for supporting qt6, which I'm also awaiting; https://github.com/rust-qt/ritual/issues/109.
- Qt 6.2 LTS Released
What are some alternatives?
slint - Slint is a declarative GUI toolkit to build native user interfaces for Rust, C++, or JavaScript apps.
Rust Qt Binding Generator git - Generate bindings to use Rust code in Qt and QML
qt6ct - Qt6 Configuration Tool
cxx - Safe interop between Rust and C++
crates.io - The Rust package registry
qt.rs - Qt5 binding for rust language. (stalled)
miniserve - 🌟 For when you really just want to serve some files over HTTP right now!
QMetaObject crate for Rust - Integrate Qml and Rust by building the QMetaObject at compile time.
gyroflow - Video stabilization using gyroscope data
imgui-rs - Rust bindings for Dear ImGui
bonsai - A library for building dynamic webapps, using Js_of_ocaml
conrod - An easy-to-use, 2D GUI library written entirely in Rust.