qml 0.0.9

Safe QML bindings for Rust
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![allow(non_snake_case)]
// #![feature(trace_macros)]
#[macro_use]
extern crate qml;

use qml::*;

fn main() {
    let mut qqae = QmlEngine::new();
    // trace_macros!(true);
    let shortcut = qvarlist![["John", [2, 2]], ["Ivan", [10, 0]], ["Mary", [0, 1]]];
    qqae.set_and_store_property("values", shortcut);

    qqae.load_file("examples/qvarlists.qml");
    qqae.exec();
}