Struct qt_core::q_meta_type::Type

source ·
pub struct Type(/* private fields */);
Expand description

These are the built-in types supported by QMetaType:

C++ enum: QMetaType::Type.

C++ documentation:

These are the built-in types supported by QMetaType:

Additional types can be registered using Q_DECLARE_METATYPE().

See also type() and typeName().

Implementations§

source§

impl Type

source

pub fn to_int(&self) -> c_int

source§

impl Type

source

pub const Void: Type = _

void (C++ enum variant: Void = 43)

source

pub const Bool: Type = _

bool (C++ enum variant: Bool = 1)

source

pub const Int: Type = _

int (C++ enum variant: Int = 2)

source

pub const UInt: Type = _

unsigned int (C++ enum variant: UInt = 3)

source

pub const LongLong: Type = _

LongLong (C++ enum variant: LongLong = 4)

source

pub const ULongLong: Type = _

ULongLong (C++ enum variant: ULongLong = 5)

source

pub const Double: Type = _

double (C++ enum variant: Double = 6)

source

pub const Long: Type = _

long (C++ enum variant: Long = 32)

source

pub const Short: Type = _

short (C++ enum variant: Short = 33)

source

pub const Char: Type = _

char (C++ enum variant: Char = 34)

source

pub const ULong: Type = _

unsigned long (C++ enum variant: ULong = 35)

source

pub const UShort: Type = _

unsigned short (C++ enum variant: UShort = 36)

source

pub const UChar: Type = _

unsigned char (C++ enum variant: UChar = 37)

source

pub const Float: Type = _

float (C++ enum variant: Float = 38)

source

pub const SChar: Type = _

signed char (C++ enum variant: SChar = 40)

source

pub const Nullptr: Type = _

std::nullptr_t (C++ enum variant: Nullptr = 51)

source

pub const VoidStar: Type = _

void * (C++ enum variant: VoidStar = 31)

source

pub const QChar: Type = _

QChar (C++ enum variant: QChar = 7)

source

pub const QString: Type = _

QString (C++ enum variant: QString = 10)

source

pub const QStringList: Type = _

QStringList (C++ enum variant: QStringList = 11)

source

pub const QByteArray: Type = _

QByteArray (C++ enum variant: QByteArray = 12)

source

pub const QBitArray: Type = _

QBitArray (C++ enum variant: QBitArray = 13)

source

pub const QDate: Type = _

QDate (C++ enum variant: QDate = 14)

source

pub const QTime: Type = _

QTime (C++ enum variant: QTime = 15)

source

pub const QDateTime: Type = _

QDateTime (C++ enum variant: QDateTime = 16)

source

pub const QUrl: Type = _

QUrl (C++ enum variant: QUrl = 17)

source

pub const QLocale: Type = _

QLocale (C++ enum variant: QLocale = 18)

source

pub const QRect: Type = _

QRect (C++ enum variant: QRect = 19)

source

pub const QRectF: Type = _

QRectF (C++ enum variant: QRectF = 20)

source

pub const QSize: Type = _

QSize (C++ enum variant: QSize = 21)

source

pub const QSizeF: Type = _

QSizeF (C++ enum variant: QSizeF = 22)

source

pub const QLine: Type = _

QLine (C++ enum variant: QLine = 23)

source

pub const QLineF: Type = _

QLineF (C++ enum variant: QLineF = 24)

source

pub const QPoint: Type = _

QPoint (C++ enum variant: QPoint = 25)

source

pub const QPointF: Type = _

QPointF (C++ enum variant: QPointF = 26)

source

pub const QRegExp: Type = _

QRegExp (C++ enum variant: QRegExp = 27)

source

pub const QEasingCurve: Type = _

QEasingCurve (C++ enum variant: QEasingCurve = 29)

source

pub const QUuid: Type = _

QUuid (C++ enum variant: QUuid = 30)

source

pub const QVariant: Type = _

QVariant (C++ enum variant: QVariant = 41)

source

pub const QModelIndex: Type = _

QModelIndex (C++ enum variant: QModelIndex = 42)

source

pub const QRegularExpression: Type = _

QRegularExpression (C++ enum variant: QRegularExpression = 44)

source

pub const QJsonValue: Type = _

QJsonValue (C++ enum variant: QJsonValue = 45)

source

pub const QJsonObject: Type = _

QJsonObject (C++ enum variant: QJsonObject = 46)

source

pub const QJsonArray: Type = _

QJsonArray (C++ enum variant: QJsonArray = 47)

source

pub const QJsonDocument: Type = _

QJsonDocument (C++ enum variant: QJsonDocument = 48)

source

pub const QPersistentModelIndex: Type = _

QPersistentModelIndex (since 5.5) (C++ enum variant: QPersistentModelIndex = 50)

source

pub const QObjectStar: Type = _

QObject * (C++ enum variant: QObjectStar = 39)

source

pub const QVariantMap: Type = _

QVariantMap (C++ enum variant: QVariantMap = 8)

source

pub const QVariantList: Type = _

QVariantList (C++ enum variant: QVariantList = 9)

source

pub const QVariantHash: Type = _

QVariantHash (C++ enum variant: QVariantHash = 28)

source

pub const QByteArrayList: Type = _

QByteArrayList (C++ enum variant: QByteArrayList = 49)

source

pub const QFont: Type = _

QFont (C++ enum variant: QFont = 64)

source

pub const QPixmap: Type = _

QPixmap (C++ enum variant: QPixmap = 65)

source

pub const QBrush: Type = _

QBrush (C++ enum variant: QBrush = 66)

source

pub const QColor: Type = _

QColor (C++ enum variant: QColor = 67)

source

pub const QPalette: Type = _

QPalette (C++ enum variant: QPalette = 68)

source

pub const QIcon: Type = _

QIcon (C++ enum variant: QIcon = 69)

source

pub const QImage: Type = _

QImage (C++ enum variant: QImage = 70)

source

pub const QPolygon: Type = _

QPolygon (C++ enum variant: QPolygon = 71)

source

pub const QRegion: Type = _

QRegion (C++ enum variant: QRegion = 72)

source

pub const QBitmap: Type = _

QBitmap (C++ enum variant: QBitmap = 73)

source

pub const QCursor: Type = _

QCursor (C++ enum variant: QCursor = 74)

source

pub const QKeySequence: Type = _

QKeySequence (C++ enum variant: QKeySequence = 75)

source

pub const QPen: Type = _

QPen (C++ enum variant: QPen = 76)

source

pub const QTextLength: Type = _

QTextLength (C++ enum variant: QTextLength = 77)

source

pub const QTextFormat: Type = _

QTextFormat (C++ enum variant: QTextFormat = 78)

source

pub const QMatrix: Type = _

QMatrix (C++ enum variant: QMatrix = 79)

source

pub const QTransform: Type = _

QTransform (C++ enum variant: QTransform = 80)

source

pub const QMatrix4X4: Type = _

QMatrix4x4 (C++ enum variant: QMatrix4x4 = 81)

source

pub const QVector2D: Type = _

QVector2D (C++ enum variant: QVector2D = 82)

source

pub const QVector3D: Type = _

QVector3D (C++ enum variant: QVector3D = 83)

source

pub const QVector4D: Type = _

QVector4D (C++ enum variant: QVector4D = 84)

source

pub const QQuaternion: Type = _

QQuaternion (C++ enum variant: QQuaternion = 85)

source

pub const QPolygonF: Type = _

QPolygonF (C++ enum variant: QPolygonF = 86)

source

pub const QSizePolicy: Type = _

QSizePolicy (C++ enum variant: QSizePolicy = 121)

source

pub const FirstCoreType: Type = _

C++ enum variant: FirstCoreType = 1

source

pub const LastCoreType: Type = _

C++ enum variant: LastCoreType = 51

source

pub const FirstGuiType: Type = _

C++ enum variant: FirstGuiType = 64

source

pub const LastGuiType: Type = _

C++ enum variant: LastGuiType = 86

source

pub const FirstWidgetsType: Type = _

C++ enum variant: FirstWidgetsType = 121

source

pub const LastWidgetsType: Type = _

C++ enum variant: LastWidgetsType = 121

source

pub const HighestInternalId: Type = _

C++ enum variant: HighestInternalId = 121

source

pub const QReal: Type = _

C++ enum variant: QReal = 6

source

pub const UnknownType: Type = _

This is an invalid type id. It is returned from QMetaType for types that are not registered (C++ enum variant: UnknownType = 0)

source

pub const User: Type = _

Base value for user types (C++ enum variant: User = 1024)

source

pub const QCborSimpleType: Type = _

QCborSimpleType (C++ enum variant: QCborSimpleType = 52)

source

pub const QCborValue: Type = _

QCborValue (C++ enum variant: QCborValue = 53)

source

pub const QCborArray: Type = _

QCborArray (C++ enum variant: QCborArray = 54)

source

pub const QCborMap: Type = _

QCborMap (C++ enum variant: QCborMap = 55)

source

pub const LastCoreType2: Type = _

C++ enum variant: LastCoreType = 55

Trait Implementations§

source§

impl Clone for Type

source§

fn clone(&self) -> Type

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Type

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<Type> for c_int

source§

fn from(value: Type) -> Self

Converts to this type from the input type.
source§

impl From<i32> for Type

source§

fn from(value: c_int) -> Self

Converts to this type from the input type.
source§

impl PartialEq for Type

source§

fn eq(&self, other: &Type) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for Type

source§

impl Eq for Type

source§

impl StructuralEq for Type

source§

impl StructuralPartialEq for Type

Auto Trait Implementations§

§

impl RefUnwindSafe for Type

§

impl Send for Type

§

impl Sync for Type

§

impl Unpin for Type

§

impl UnwindSafe for Type

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T, U> CastInto<U> for T
where U: CastFrom<T>,

source§

unsafe fn cast_into(self) -> U

Performs the conversion. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> StaticUpcast<T> for T

source§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.