以下成員源於類 QVariant are part of the Qt compatibility layer. We advise against using them in new code.
| 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 |
使用 QVariant (bool) constructor instead.
使用 toBitArray () 代替。
使用 toBool () 代替。
使用 toByteArray () 代替。
使用 toByteArray () 代替。
使用 toDate () 代替。
使用 toDateTime () 代替。
使用 toDouble () 代替。
使用 toInt () 代替。
使用 toList () 代替。
使用 toLongLong () 代替。
使用 toMap () 代替。
使用 toPoint () 代替。
使用 toRect () 代替。
使用 toSize () 代替。
使用 toString () 代替。
使用 toStringList () 代替。
使用 toTime () 代替。
使用 toUInt () 代替。
使用 toULongLong () 代替。
使用 canConvert () 代替。
使用 convert () 代替。
使用 toByteArray () 代替。