Struct qmetaobject::QVariant
source · [−]#[repr(C)]pub struct QVariant { /* private fields */ }
Expand description
Wrapper around QVariant
class.
Implementations
sourceimpl QVariant
impl QVariant
sourcepub fn to_qbytearray(&self) -> QByteArray
pub fn to_qbytearray(&self) -> QByteArray
Wrapper around toByteArray()
method.
sourcepub fn user_type(&self) -> i32
pub fn user_type(&self) -> i32
Wrapper around userType()
method.
Trait Implementations
sourceimpl From<QByteArray> for QVariant
impl From<QByteArray> for QVariant
sourcepub fn from(a: QByteArray) -> QVariant
pub fn from(a: QByteArray) -> QVariant
Wrapper around QVariant(const QByteArray &)
constructor.
sourceimpl From<QDate> for QVariant
impl From<QDate> for QVariant
sourcepub fn from(a: QDate) -> QVariant
pub fn from(a: QDate) -> QVariant
Wrapper around QVariant(const QDate &)
constructor.
sourceimpl From<QDateTime> for QVariant
impl From<QDateTime> for QVariant
sourcepub fn from(a: QDateTime) -> QVariant
pub fn from(a: QDateTime) -> QVariant
Wrapper around QVariant(const QDateTime &)
constructor.
sourceimpl<'pin, T: QObject + 'pin> From<QObjectPinned<'pin, T>> for QVariant
impl<'pin, T: QObject + 'pin> From<QObjectPinned<'pin, T>> for QVariant
sourcefn from(obj: QObjectPinned<'pin, T>) -> Self
fn from(obj: QObjectPinned<'pin, T>) -> Self
Performs the conversion.
sourceimpl From<QString> for QVariant
impl From<QString> for QVariant
sourcepub fn from(a: QString) -> QVariant
pub fn from(a: QString) -> QVariant
Wrapper around QVariant(const QString &)
constructor.
sourceimpl From<QTime> for QVariant
impl From<QTime> for QVariant
sourcepub fn from(a: QTime) -> QVariant
pub fn from(a: QTime) -> QVariant
Wrapper around QVariant(const QTime &)
constructor.
sourceimpl From<QUrl> for QVariant
impl From<QUrl> for QVariant
sourcepub fn from(a: QUrl) -> QVariant
pub fn from(a: QUrl) -> QVariant
Wrapper around QVariant(const QUrl &)
constructor.
sourceimpl From<QVariant> for QJsonValue
impl From<QVariant> for QJsonValue
sourcepub fn from(v: QVariant) -> QJsonValue
pub fn from(v: QVariant) -> QJsonValue
Performs the conversion.
sourceimpl From<QVariantList> for QVariant
impl From<QVariantList> for QVariant
sourcepub fn from(a: QVariantList) -> QVariant
pub fn from(a: QVariantList) -> QVariant
Wrapper around QVariant(const QVariantList &)
constructor.
sourceimpl From<bool> for QVariant
impl From<bool> for QVariant
sourcepub fn from(a: bool) -> QVariant
pub fn from(a: bool) -> QVariant
Wrapper around QVariant(bool)
constructor.
sourceimpl From<f32> for QVariant
impl From<f32> for QVariant
sourcepub fn from(a: f32) -> QVariant
pub fn from(a: f32) -> QVariant
Wrapper around QVariant(float)
constructor.
sourceimpl From<f64> for QVariant
impl From<f64> for QVariant
sourcepub fn from(a: f64) -> QVariant
pub fn from(a: f64) -> QVariant
Wrapper around QVariant(double)
constructor.
sourceimpl From<i32> for QVariant
impl From<i32> for QVariant
sourcepub fn from(a: i32) -> QVariant
pub fn from(a: i32) -> QVariant
Wrapper around QVariant(int)
constructor.
sourceimpl From<i64> for QVariant
impl From<i64> for QVariant
sourcepub fn from(a: i64) -> QVariant
pub fn from(a: i64) -> QVariant
Wrapper around QVariant(int)
constructor.
sourceimpl From<u32> for QVariant
impl From<u32> for QVariant
sourcepub fn from(a: u32) -> QVariant
pub fn from(a: u32) -> QVariant
Wrapper around QVariant(uint)
constructor.
sourceimpl From<u64> for QVariant
impl From<u64> for QVariant
sourcepub fn from(a: u64) -> QVariant
pub fn from(a: u64) -> QVariant
Wrapper around QVariant(uint)
constructor.
sourceimpl QMetaType for QVariant
impl QMetaType for QVariant
sourcefn to_qvariant(&self) -> QVariant
fn to_qvariant(&self) -> QVariant
Returns a QVariant containing a copy of this object
sourcefn from_qvariant(variant: QVariant) -> Option<Self>
fn from_qvariant(variant: QVariant) -> Option<Self>
Attempt to convert from a QVariant to this type.
fn id() -> i32
sourceconst CONVERSION_TO_STRING: Option<fn(_: &Self) -> QString>
const CONVERSION_TO_STRING: Option<fn(_: &Self) -> QString>
If this is set to a function, it enable the conversion to and from QString
const CONVERSION_FROM_STRING: Option<fn(_: &QString) -> Self>
impl Eq for QVariant
impl StructuralEq for QVariant
Auto Trait Implementations
impl RefUnwindSafe for QVariant
impl Send for QVariant
impl Sync for QVariant
impl Unpin for QVariant
impl UnwindSafe for QVariant
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> PropertyType for T where
T: QMetaType,
impl<T> PropertyType for T where
T: QMetaType,
fn register_type(name: &CStr) -> i32
unsafe fn pass_to_qt(&mut self, a: *mut c_void)
unsafe fn read_from_qt(a: *const c_void) -> Self
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more