Struct qml::QVariantList
[−]
[src]
pub struct QVariantList { /* fields omitted */ }
A wrapper around Vec<QVariant>
, that is supposed to be used in Q_OBJECT!
properties.
It is only needed because of macro restrictions in current stable Rust.
Examples
let shortcut: QVariantList = qvarlist![["John", [2, 2]], ["Ivan", [10, 0]], ["Mary", [0, 1]]].into();
pub struct Example; Q_OBJECT!( pub Example as QExample{ signals: slots: properties: list: QVariantList; read: get_list, write: set_list, notify: list_changed; }); let mut qobj = QExample::new(Example, qvarlist![["John", [2, 2]]].into());