{"id":15207016,"url":"https://github.com/white-oak/qml-rust","last_synced_at":"2025-10-02T23:35:26.354Z","repository":{"id":62443205,"uuid":"62276726","full_name":"White-Oak/qml-rust","owner":"White-Oak","description":"QML (Qt Quick) bindings for Rust language","archived":true,"fork":false,"pushed_at":"2017-08-02T07:49:52.000Z","size":3817,"stargazers_count":205,"open_issues_count":22,"forks_count":18,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-01-16T09:47:30.080Z","etag":null,"topics":["gui","qml","qt","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/White-Oak.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-30T03:34:33.000Z","updated_at":"2024-04-25T15:07:47.000Z","dependencies_parsed_at":"2022-11-01T22:16:31.462Z","dependency_job_id":null,"html_url":"https://github.com/White-Oak/qml-rust","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/White-Oak%2Fqml-rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/White-Oak%2Fqml-rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/White-Oak%2Fqml-rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/White-Oak%2Fqml-rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/White-Oak","download_url":"https://codeload.github.com/White-Oak/qml-rust/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235051521,"owners_count":18928177,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gui","qml","qt","rust"],"created_at":"2024-09-28T06:05:56.303Z","updated_at":"2025-10-02T23:35:25.902Z","avatar_url":"https://github.com/White-Oak.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# QML-rust - bindings for [Qt Quick](http://doc.qt.io/qt-5/qtquick-index.html)\n[![Build\nStatus](https://travis-ci.org/White-Oak/qml-rust.svg?branch=master)](https://travis-ci.org/White-Oak/qml-rust)\n[![Crates.io](https://img.shields.io/crates/v/qml.svg)]()\n\nBindings are based on [DOtherSide](https://github.com/filcuc/DOtherSide) C bindings for QML\nLibrary is mostly feature-compliant with other bindings based on the library, but lacks some minor features and has quite a few bugs.\n\n## [documentation](https://white-oak.github.io/qml-rust/qml/)\n# Examples\nAll examples are located in a folder [`examples/`](examples), under `example_name.rs` and `example_name.qml` names.\n\n* `cargo run --example properties` for setting properties from Rust to QML.\n* `cargo run --example listmodel` for an example of providing QML with list model from Rust.\n* `cargo run --example listmodel_macro` for the same example, but using `Q_LISTMODEL!` and `Q_LISTMODEL_ITEM!` macro.\n* `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.\n* `cargo run --example qobjects` for an example of how to use `Q_OBJECT!` macro with different types.\n* `cargo run --example qvarlists` for an example of how to use `qvarlist!` macro to easily form `QVariant` (used to pass data to QML) of a complex array.\n* `cargo run --example threaded` for an example of multithreading.\n* `cargo run --example qmlregister` for an example of how to register and use your own types from Rust in QML.\n* An example in `examples/resources` (should be run manually by `cargo run`) shows how to use qrc resources.\n\nRequires CMake, Make, Qt (Core, Gui, Widgets, Quick), pkg-config (only for OS X and GNU/Linux) and, of course, Rust.\n\nTo run tests: `RUST_TEST_THREADS=1 cargo test`\n## In-app examples\n\n* [Architect](https://github.com/White-Oak/architect) - an app showing some git stats,\nusing qml-rust to provide properties and lists to QML in [here](https://github.com/White-Oak/architect/blob/master/src/view/qt.rs).\n* [Kefia](https://github.com/White-Oak/kefia) - A simple package manager, that provides a QListModel to QML, registers a QObject with slots and communicates between QML and Rust,\n[here](https://github.com/White-Oak/kefia/blob/master/src/view.rs).\n\n# Status\nDone:\n* Basic initialization and execution.\n* Providing properties to QML files.\n* QAbstractListModels - provides changable models for QML items (early draft, still lacks proper mutability).\n* QObjects: slots, signals (limited properties support). Emitting signals and receiving slots works.\n* Registering your own QML types (singletons or not) from Rust code.\n\nTo be done:\n* the library is mostly done, but some stuff is lacking polish, like possible memory leaks or better macro designs.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhite-oak%2Fqml-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwhite-oak%2Fqml-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhite-oak%2Fqml-rust/lists"}