qml 0.0.3

Safe QML bindings for Rust
Documentation

QML-rust - bindings for Qt Quick

Library is still in a rough shape.
Bindings are based on DOtherSide C bindings for QML

Examples

  • cargo run --example properties for setting properties from Rust to QML.
  • cargo run --example listmodel for an example of providing QML with list model from Rust.
  • cargo run --example sigslots for an example of how to create your own QObject with signals and slots, and to communicate between QML and Rust. Also shows how to use Q_OBJECT! macro.

Requires CMake, Make, Qt (Core, Gui, Widgets, Quick) and, of course, Rust.

In-app examples

  • Architect - an app showing some git stats, using qml-rust to provide properties and lists to QML in here
  • Kefia - A simple package manager, that provides a QListModel to QML, here

Status

Done:

  • Basic initialization and execution.
  • Providing properties to QML files.
  • QAbstractListModels - to provide changable models for QML items (early draft, still lacks proper mutability).
  • QObjects: slots, signals (no properties for a whiel). Emitting signals and receiving slots works.

To be done:

  • QML singletons
  • etc