QVariant Class Reference
[QtCore module]
Types
- enum Type { Invalid, Bool, Int, UInt, ..., UserType }
Methods
- __init__ (self)
- __init__ (self, Type)
- __init__ (self, int, sip.voidptr)
- __init__ (self, QVariant)
- __init__ (self, object)
- bool canConvert (self, Type)
- clear (self)
- bool convert (self, Type)
- sip.voidptr data (self)
- detach (self)
- bool isDetached (self)
- bool isNull (self)
- bool isValid (self)
- load (self, QDataStream)
- save (self, QDataStream)
- QBitArray toBitArray (self)
- bool toBool (self)
- QByteArray toByteArray (self)
- QChar toChar (self)
- QDate toDate (self)
- QDateTime toDateTime (self)
- (float, bool ok) toDouble (self)
- QEasingCurve toEasingCurve (self)
- (float, bool ok) toFloat (self)
- dict-of-QString-QVariant toHash (self)
- (int, bool ok) toInt (self)
- QLine toLine (self)
- QLineF toLineF (self)
- list-of-QVariant toList (self)
- QLocale toLocale (self)
- (int, bool ok) toLongLong (self)
- dict-of-QString-QVariant toMap (self)
- QPoint toPoint (self)
- QPointF toPointF (self)
- object toPyObject (self)
- (float, bool ok) toReal (self)
- QRect toRect (self)
- QRectF toRectF (self)
- QRegExp toRegExp (self)
- QSize toSize (self)
- QSizeF toSizeF (self)
- QString toString (self)
- QStringList toStringList (self)
- QTime toTime (self)
- (int, bool ok) toUInt (self)
- (int, bool ok) toULongLong (self)
- QUrl toUrl (self)
- Type type (self)
- str typeName (self)
- int userType (self)
Static Methods
Special Methods
Detailed Description
Any Python object may be used whenever a
QVariant is expected. None will be
interpreted as an invalid QVariant.
Type Documentation
QVariant.Type
Method Documentation
QVariant.__init__ (self)
QVariant.__init__ (self, Type)
QVariant.__init__ (self, int, sip.voidptr)
QVariant.__init__ (self, QVariant)
QVariant.__init__ (self, object)
bool QVariant.canConvert (self, Type)
QVariant.clear (self)
bool QVariant.convert (self, Type)
sip.voidptr QVariant.data (self)
QVariant.detach (self)
QVariant QVariant.fromList (list-of-QVariant list)
QVariant QVariant.fromMap (dict-of-QString-QVariant map)
bool QVariant.isDetached (self)
bool QVariant.isNull (self)
bool QVariant.isValid (self)
Type QVariant.nameToType (str)
QBitArray QVariant.toBitArray (self)
bool QVariant.toBool (self)
QByteArray QVariant.toByteArray (self)
QChar QVariant.toChar (self)
QDate QVariant.toDate (self)
QDateTime QVariant.toDateTime (self)
(float, bool ok) QVariant.toDouble (self)
QEasingCurve QVariant.toEasingCurve (self)
(float, bool ok) QVariant.toFloat (self)
dict-of-QString-QVariant QVariant.toHash (self)
(int, bool ok) QVariant.toInt (self)
QLine QVariant.toLine (self)
QLineF QVariant.toLineF (self)
list-of-QVariant QVariant.toList (self)
QLocale QVariant.toLocale (self)
(int, bool ok) QVariant.toLongLong (self)
dict-of-QString-QVariant QVariant.toMap (self)
QPoint QVariant.toPoint (self)
QPointF QVariant.toPointF (self)
object QVariant.toPyObject (self)
(float, bool ok) QVariant.toReal (self)
QRect QVariant.toRect (self)
QRectF QVariant.toRectF (self)
QRegExp QVariant.toRegExp (self)
QSize QVariant.toSize (self)
QSizeF QVariant.toSizeF (self)
QString QVariant.toString (self)
QStringList QVariant.toStringList (self)
QTime QVariant.toTime (self)
(int, bool ok) QVariant.toUInt (self)
(int, bool ok) QVariant.toULongLong (self)
QUrl QVariant.toUrl (self)
Type QVariant.type (self)
str QVariant.typeName (self)
str QVariant.typeToName (Type)
int QVariant.userType (self)
bool QVariant.__eq__ (self, QVariant)
bool QVariant.__ne__ (self, QVariant)