Compatibility Members for QVariant
The following members of class QVariantare part of the Qt compatibility layer. We advise against using them in new code.
Public Functions
QVariant(bool b, int dummy) | |
QBitArray & | asBitArray() |
bool & | asBool() |
QByteArray & | asByteArray() |
QByteArray & | asCString() |
QDate & | asDate() |
QDateTime & | asDateTime() |
double & | asDouble() |
int & | asInt() |
QList<QVariant> & | asList() |
qlonglong & | asLongLong() |
QMap<QString, QVariant> & | asMap() |
QPoint & | asPoint() |
QRect & | asRect() |
QSize & | asSize() |
QString & | asString() |
QStringList & | asStringList() |
QTime & | asTime() |
uint & | asUInt() |
qulonglong & | asULongLong() |
bool | canCast(Type t) const |
bool | cast(Type t) |
const QByteArray | toCString() const |
Member Function Documentation
QVariant::QVariant(bool b, int dummy)
Use the QVariant(bool) constructor instead.
QBitArray & QVariant::asBitArray()
Use toBitArray() instead.
bool & QVariant::asBool()
Use toBool() instead.
QByteArray & QVariant::asByteArray()
Use toByteArray() instead.
QByteArray & QVariant::asCString()
Use toByteArray() instead.
QDate & QVariant::asDate()
Use toDate() instead.
QDateTime & QVariant::asDateTime()
Use toDateTime() instead.
double & QVariant::asDouble()
Use toDouble() instead.
int & QVariant::asInt()
Use toInt() instead.
QList<QVariant> & QVariant::asList()
Use toList() instead.
qlonglong & QVariant::asLongLong()
Use toLongLong() instead.
QMap<QString, QVariant> & QVariant::asMap()
Use toMap() instead.
QPoint & QVariant::asPoint()
Use toPoint() instead.
QRect & QVariant::asRect()
Use toRect() instead.
QSize & QVariant::asSize()
Use toSize() instead.
QString & QVariant::asString()
Use toString() instead.
QStringList & QVariant::asStringList()
Use toStringList() instead.
QTime & QVariant::asTime()
Use toTime() instead.
uint & QVariant::asUInt()
Use toUInt() instead.
qulonglong & QVariant::asULongLong()
Use toULongLong() instead.
bool QVariant::canCast(Type t) const
Use canConvert() instead.
bool QVariant::cast(Type t)
Use convert() instead.
const QByteArray QVariant::toCString() const
Use toByteArray() instead.
© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.