QMetaObject crate for Rust
gyroflow
Our great sponsors
QMetaObject crate for Rust | gyroflow | |
---|---|---|
20 | 74 | |
599 | 6,050 | |
2.3% | 2.4% | |
6.5 | 9.6 | |
about 2 months ago | 10 days ago | |
Rust | Rust | |
MIT License | GNU General Public License v3.0 only |
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.
QMetaObject crate for Rust
-
9 years of Apple text editor solo dev
You can use Rust with QML[1].
QML is actually pretty amazing. I've been building my block editor[2] view entirely in QML while the model is in C++. This separation of logic and presentation works great. And yes, there are some crashes sometimes (that I find quite easy to debug thanks to the built-in debugger), but take for example a similar app that's built with Rust and Dart[3], in my testing there were still memory leaks that caused my computer to hang. It's better to know you have a bug than for it to be hidden from you.
I agree with parent commenter, saying these cross-platform frameworks will end up supporting the least common denominator set of features. But I found with external open source libraries, the community is catching up very fast. For example, you want the awesome translucency macOS apps have for your Qt app? Here you go[4]. Many such cases. It's also pretty straightforward to add your own custom OS-dependent code, especially so, if someone already open sourced his approach. I recently wanted to move the traffic light buttons on macOS for my app, but couldn't figure the Objective-C code for that. I ended up looking at either Tauri or Electron source code and found my answer.
[1] https://github.com/woboq/qmetaobject-rs
-
I like rust but want to use Qt.
I just used qmetaobject-rs and my experience with Qt/QML. There's the QML book from Qt if you're just starting, which is pretty nice https://www.qt.io/product/qt6/qml-book
- GUI development with Rust and GTK 4
-
Made my first app in Rust! A notification daemon for Linux :)
qmetaobject is probably the most mature Qt Rust binding at the moment. It uses the cpp crate to embed C++ inline in Rust to create its bindings. There are some people using it and it does get some maintenance, but it's not under active development since the original author is now working on Slint.
- QT for Rust?
-
Using KConfig with Rust
The bindings currently use the git version of qttypes since I had to merge some upstream changes that are needed for these bindings. So they are not ready for prime time just yet.
-
CXX-Qt: safe Rust bindings for Qt
There are a bunch of bindings with different language, but even the ones that are officially supported like PySide will still be second class citizen and awkward to use.
Automated binding generation will never give you idiomatic API in whatever language. And if you want an idiomatic library that wraps Qt, it's going to take a huge amount of work.
Which is why I think restricting to QML makes sense because that's a much smaller API surface. That was the ambition behind my previous crate that exposes QML to rust: https://github.com/woboq/qmetaobject-rs/
But now I've moved on to another GUI project: Slint https://github.com/slint-ui/slint
-
Why does Rust code compile into a single executable binary?
Whisperfish does this with Qt: https://github.com/woboq/qmetaobject-rs/issues/102
-
Announcing Gyroflow - an advanced video stabilization tool written in Rust with GPU acceleration and cross-platform UI
What do you want to know? It's pretty easy thanks to the amazing work of guys behind qmetaobject-rs.
-
Using KI18n with Rust and Qml
This is probably the portion that I found the most difficult. The README of qmetaobject-rs gives us a basic idea of the build script, so I started with that. Here is my starting script
gyroflow
-
Shot this using the Sony A7Cii handheld
I am no videographer and only read somewhere about gyro-stabilization and https://gyroflow.xyz So maybe that's an alternative to that software. Just leaving it here.
-
I like rust but want to use Qt.
You can get pretty far with Rust + Qt and I've been very happy with it, see Gyroflow
-
Any good beginner open source projects for a guy with a math background?
I need some math in Gyroflow for lens geometry and lens projection if you have experience with that
-
Qt Creator 12 Released
Rust has quite decent support for QML though. One of the really famous video footage stabilizer apps uses Rust with QML: https://docs.gyroflow.xyz/app/technical-details/used-technol..., and that is a non trivial UI: https://gyroflow.xyz/
- Spacedrive – an open source cross-platform file explorer
-
Hero 10 Black overheats in Time Warp - options?
I think you would get the same result if you just recorded a regular video (at whatever resolution you want and a minimal framerate), then pass it through something like Gyroflow and increase the speed. Downside — it’s not automatic and you can’t preview on the camera. Upside — it won’t overheat you have more options to tweak after the fact.
-
A gimbal for travel or go handheld?
My buddy and I have been playing with Gyroflow (free and open source) for stabilization. It uses the A7C's gyro data to smooth out handheld footage. There are a ton of options to play with, too - much more to work with than Resolve, which is what we had been using. We've had solid results on the A7C and excellent results with the BMPCC6K.
-
Stabilization Algorithm
Maybe it wouldn't be a bad idea to dig into the Gyroflow's sources.
-
Tilt angle data
You can convert that data into a CSV using Gyroflow in combination with this Python script.
- Gyroflow: An open source advanced gyro-based video stabilization tool
What are some alternatives?
Slint - Slint is a toolkit to efficiently develop fluid graphical user interfaces for any display: embedded devices and desktop applications. We support multiple programming languages, such as Rust, C++ or JavaScript. [Moved to: https://github.com/slint-ui/slint]
ReelSteady-Joiner - ReelSteady Joiner merge multiple GoPro separate video files into one without losing the gyro data
slint - Slint is a declarative GUI toolkit to build native user interfaces for Rust, C++, or JavaScript apps.
gyroflow-ofx
wxRust - A Rust binding of the wxWidgets cross platform toolkit.
ExpressLRS - STM32/ESP32/ESP8285-based High-Performance Radio Link for RC applications
Rust Qt Binding Generator git - Generate bindings to use Rust code in Qt and QML
edgetx - EdgeTX is the cutting edge open source firmware for your R/C radio
Native Windows GUI - A light windows GUI toolkit for rust
ritual - Use C++ libraries from Rust