Struct qml::QmlEngine
[−]
[src]
pub struct QmlEngine { /* fields omitted */ }
Provides an entry point for building QML applications from Rust
Methods
impl QmlEngine
[src]
fn new() -> Self
Creates a QML context of a non-headless application
fn load_file(&mut self, path: &str)
Loads a file as a qml file
fn load_url(&mut self, uri: &str)
Loads qml from a specified url (file://
, qrc://
, http://
)
fn load_data(&mut self, data: &str)
Loads a string as a qml file
fn exec(&mut self)
Launches the application
fn quit(&mut self)
Closes the application
fn set_and_store_property<T: Into<QVariant>>(&mut self, name: &str, value: T)
Sets a property for this QML context
This variant stores qvariant, so it is removed, only when this QmlEngine is removed.
fn set_property(&mut self, name: &str, value: &QVariant)
Sets a property for this QML context