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());

See

qvarlist!, Q_OBJECT!

Trait Implementations

impl QMetaTypable for QVariantList
[src]

Returns an associate variant of QMetaType

impl Default for QVariantList
[src]

Returns the "default value" for a type. Read more

impl From<Vec<QVariant>> for QVariantList
[src]

Performs the conversion.

impl From<QVariant> for QVariantList
[src]

Performs the conversion.