QMetaType Class Reference

QMetaType Class Reference

#include <qmetatype.h>

Class Description

Definition at line 62 of file qmetatype.h.

Public Types

enum  Type {
  Void = 0, Bool = 1, Int = 2, UInt = 3,
  LongLong = 4, ULongLong = 5, Double = 6, QChar = 7,
  QVariantMap = 8, QVariantList = 9, QString = 10, QStringList = 11,
  QByteArray = 12, QBitArray = 13, QDate = 14, QTime = 15,
  QDateTime = 16, QUrl = 17, QLocale = 18, QRect = 19,
  QRectF = 20, QSize = 21, QSizeF = 22, QLine = 23,
  QLineF = 24, QPoint = 25, QPointF = 26, QRegExp = 27,
  QVariantHash = 28, QEasingCurve = 29, LastCoreType = QEasingCurve, FirstGuiType = 63,
  QFont = 64, QPixmap = 65, QBrush = 66, QColor = 67,
  QPalette = 68, QIcon = 69, QImage = 70, QPolygon = 71,
  QRegion = 72, QBitmap = 73, QCursor = 74, QSizePolicy = 75,
  QKeySequence = 76, QPen = 77, QTextLength = 78, QTextFormat = 79,
  QMatrix = 80, QTransform = 81, QMatrix4x4 = 82, QVector2D = 83,
  QVector3D = 84, QVector4D = 85, QQuaternion = 86, LastGuiType = QQuaternion,
  FirstCoreExtType = 128, VoidStar = 128, Long = 129, Short = 130,
  Char = 131, ULong = 132, UShort = 133, UChar = 134,
  Float = 135, QObjectStar = 136, QWidgetStar = 137, QVariant = 138,
  LastCoreExtType = QVariant, QReal = Double, User = 256
}
 
typedef void(* Destructor) (void *)
 
typedef void *(* Constructor) (const void *)
 
typedef void(* SaveOperator) (QDataStream &, const void *)
 
typedef void(* LoadOperator) (QDataStream &, void *)
 

Static Public Member Functions

static void registerStreamOperators (const char *typeName, SaveOperator saveOp, LoadOperator loadOp)
 
static void registerStreamOperators (int type, SaveOperator saveOp, LoadOperator loadOp)
 
static int registerType (const char *typeName, Destructor destructor, Constructor constructor)
 
static int registerTypedef (const char *typeName, int aliasId)
 
static int type (const char *typeName)
 
static const char * typeName (int type)
 
static bool isRegistered (int type)
 
static voidconstruct (int type, const void *copy=0)
 
static void destroy (int type, void *data)
 
static void unregisterType (const char *typeName)
 
static bool save (QDataStream &stream, int type, const void *data)
 
static bool load (QDataStream &stream, int type, void *data)
 

Member Typedef Documentation

typedef void(* Destructor) (void *)

Definition at line 104 of file qmetatype.h.

typedef void*(* Constructor) (const void *)

Definition at line 105 of file qmetatype.h.

typedef void(* SaveOperator) (QDataStream &, const void *)

Definition at line 108 of file qmetatype.h.

typedef void(* LoadOperator) (QDataStream &, void *)

Definition at line 109 of file qmetatype.h.

Member Enumeration Documentation

enum Type
Enumerator
Void 
Bool 
Int 
UInt 
LongLong 
ULongLong 
Double 
QChar 
QVariantMap 
QVariantList 
QString 
QStringList 
QByteArray 
QBitArray 
QDate 
QTime 
QDateTime 
QUrl 
QLocale 
QRect 
QRectF 
QSize 
QSizeF 
QLine 
QLineF 
QPoint 
QPointF 
QRegExp 
QVariantHash 
QEasingCurve 
LastCoreType 
FirstGuiType 
QFont 
QPixmap 
QBrush 
QColor 
QPalette 
QIcon 
QImage 
QPolygon 
QRegion 
QBitmap 
QCursor 
QSizePolicy 
QKeySequence 
QPen 
QTextLength 
QTextFormat 
QMatrix 
QTransform 
QMatrix4x4 
QVector2D 
QVector3D 
QVector4D 
QQuaternion 
LastGuiType 
FirstCoreExtType 
VoidStar 
Long 
Short 
Char 
ULong 
UShort 
UChar 
Float 
QObjectStar 
QWidgetStar 
QVariant 
LastCoreExtType 
QReal 
User 

Definition at line 64 of file qmetatype.h.

64  {
65  // these are merged with QVariant
66  Void = 0, Bool = 1, Int = 2, UInt = 3, LongLong = 4, ULongLong = 5,
67  Double = 6, QChar = 7, QVariantMap = 8, QVariantList = 9,
68  QString = 10, QStringList = 11, QByteArray = 12,
69  QBitArray = 13, QDate = 14, QTime = 15, QDateTime = 16, QUrl = 17,
70  QLocale = 18, QRect = 19, QRectF = 20, QSize = 21, QSizeF = 22,
71  QLine = 23, QLineF = 24, QPoint = 25, QPointF = 26, QRegExp = 27,
73 
74  FirstGuiType = 63 /* QColorGroup */,
75 #ifdef QT3_SUPPORT
76  QColorGroup = 63,
77 #endif
78  QFont = 64, QPixmap = 65, QBrush = 66, QColor = 67, QPalette = 68,
79  QIcon = 69, QImage = 70, QPolygon = 71, QRegion = 72, QBitmap = 73,
80  QCursor = 74, QSizePolicy = 75, QKeySequence = 76, QPen = 77,
81  QTextLength = 78, QTextFormat = 79, QMatrix = 80, QTransform = 81,
82  QMatrix4x4 = 82, QVector2D = 83, QVector3D = 84, QVector4D = 85,
83  QQuaternion = 86,
85 
86  FirstCoreExtType = 128 /* VoidStar */,
87  VoidStar = 128, Long = 129, Short = 130, Char = 131, ULong = 132,
88  UShort = 133, UChar = 134, Float = 135, QObjectStar = 136, QWidgetStar = 137,
89  QVariant = 138,
91 
92 // This logic must match the one in qglobal.h
93 #if defined(QT_COORD_TYPE)
94  QReal = 0,
95 #elif defined(QT_NO_FPU) || defined(QT_ARCH_ARM) || defined(QT_ARCH_WINDOWSCE) || defined(QT_ARCH_SYMBIAN)
96  QReal = Float,
97 #else
98  QReal = Double,
99 #endif
100 
101  User = 256
102  };
Definition: qline.h:57
Definition: qcolor.h:67
Definition: qicon.h:60
Definition: qpoint.h:53
Definition: qfont.h:64
Definition: qimage.h:87
Definition: qsize.h:202
Definition: qline.h:212
Definition: qurl.h:61
Definition: qrect.h:58
Definition: qrect.h:511
Definition: qpen.h:64
Definition: qsize.h:53
Definition: qchar.h:72
Definition: qbrush.h:76

Member Function Documentation

static void registerStreamOperators ( const char *  typeName,
SaveOperator  saveOp,
LoadOperator  loadOp 
)
static
static void registerStreamOperators ( int  type,
SaveOperator  saveOp,
LoadOperator  loadOp 
)
static
static int registerType ( const char *  typeName,
Destructor  destructor,
Constructor  constructor 
)
static
static int registerTypedef ( const char *  typeName,
int  aliasId 
)
static
static int type ( const char *  typeName)
static
static const char* typeName ( int  type)
static
static bool isRegistered ( int  type)
static
static void* construct ( int  type,
const void copy = 0 
)
static
static void destroy ( int  type,
void data 
)
static
static void unregisterType ( const char *  typeName)
static
static bool save ( QDataStream stream,
int  type,
const void data 
)
static
static bool load ( QDataStream stream,
int  type,
void data 
)
static

The documentation for this class was generated from the following file: