Struct qmetaobject::QVariant
source · #[repr(C)]pub struct QVariant { /* private fields */ }
Expand description
Wrapper around QVariant
class.
Implementations§
source§impl 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§
source§impl From<QByteArray> for QVariant
impl From<QByteArray> for QVariant
source§fn from(a: QByteArray) -> QVariant
fn from(a: QByteArray) -> QVariant
Wrapper around QVariant(const QByteArray &)
constructor.
source§impl<'pin, T: QObject + 'pin> From<QObjectPinned<'pin, T>> for QVariant
impl<'pin, T: QObject + 'pin> From<QObjectPinned<'pin, T>> for QVariant
source§fn from(obj: QObjectPinned<'pin, T>) -> Self
fn from(obj: QObjectPinned<'pin, T>) -> Self
Converts to this type from the input type.
source§impl From<QStringList> for QVariant
impl From<QStringList> for QVariant
source§fn from(a: QStringList) -> QVariant
fn from(a: QStringList) -> QVariant
Wrapper around QVariant(const QStringList &)
constructor.
source§impl From<QVariant> for QJsonValue
impl From<QVariant> for QJsonValue
source§fn from(v: QVariant) -> QJsonValue
fn from(v: QVariant) -> QJsonValue
Converts to this type from the input type.
source§impl From<QVariantList> for QVariant
impl From<QVariantList> for QVariant
source§fn from(a: QVariantList) -> QVariant
fn from(a: QVariantList) -> QVariant
Wrapper around QVariant(const QVariantList &)
constructor.
source§impl Into<QVariant> for QJsonValue
impl Into<QVariant> for QJsonValue
source§impl PartialEq for QVariant
impl PartialEq for QVariant
source§impl QMetaType for QVariant
impl QMetaType for QVariant
source§fn to_qvariant(&self) -> QVariant
fn to_qvariant(&self) -> QVariant
Returns a QVariant containing a copy of this object
source§fn 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
source§const CONVERSION_TO_STRING: Option<fn(_: &Self) -> QString> = None
const CONVERSION_TO_STRING: Option<fn(_: &Self) -> QString> = None
If this is set to a function, it enable the conversion to and from QString
const CONVERSION_FROM_STRING: Option<fn(_: &QString) -> Self> = None
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more