Struct qml::QVariant [] [src]

pub struct QVariant { /* fields omitted */ }

This holds a value to be providen for a QML context.

A value can be different: int, string, float, double, bool or even a custom object.

Methods

impl QVariant
[src]

Sets the value for this QVariant

Trait Implementations

impl Debug for QVariant
[src]

Formats the value using the given formatter.

impl PartialEq for QVariant
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Clone for QVariant
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Drop for QVariant
[src]

A method called when the value goes out of scope. Read more

impl<'a> From<&'a [QVariant]> for QVariant
[src]

Performs the conversion.

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

Performs the conversion.

impl From<i32> for QVariant
[src]

Performs the conversion.

impl From<f32> for QVariant
[src]

Performs the conversion.

impl From<f64> for QVariant
[src]

Performs the conversion.

impl From<bool> for QVariant
[src]

Performs the conversion.

impl<'a> From<&'a str> for QVariant
[src]

Performs the conversion.

impl From<String> for QVariant
[src]

Performs the conversion.

impl<'a, 'b> From<&'a QListModel<'b>> for QVariant
[src]

Performs the conversion.

impl From<QVariantList> for QVariant
[src]

Performs the conversion.