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]
fn to_int(&self) -> i32
fn into_bool(self) -> bool
fn into_float(self) -> f32
fn into_double(self) -> f64
fn set(&mut self, other: &QVariant)
Sets the value for this QVariant
Trait Implementations
impl Debug for QVariant[src]
impl PartialEq for QVariant[src]
fn eq(&self, other: &QVariant) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.
impl Clone for QVariant[src]
fn clone(&self) -> Self
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl Drop for QVariant[src]
impl<'a> From<&'a [QVariant]> for QVariant[src]
impl From<Vec<QVariant>> for QVariant[src]
impl From<i32> for QVariant[src]
impl From<f32> for QVariant[src]
impl From<f64> for QVariant[src]
impl From<bool> for QVariant[src]
impl<'a> From<&'a str> for QVariant[src]
impl From<String> for QVariant[src]
impl<'a, 'b> From<&'a QListModel<'b>> for QVariant[src]
fn from(i: &QListModel) -> QVariant
Performs the conversion.
impl From<QVariantList> for QVariant[src]
fn from(i: QVariantList) -> Self
Performs the conversion.