Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions |

# Compatibility Members for QCoreVariant

The following class members are part of the Qt 3 compatibility layer. They are provided to help you port old code to Qt 4. We strongly advise against using them in new code.

QCoreVariant class reference

### Public Functions

- QCoreVariant ( bool b, int dummy )
- QBitArray & asBitArray ()
- bool & asBool ()
- QByteArray & asByteArray ()
- QByteArray & asCString ()
- QDate & asDate ()
- QDateTime & asDateTime ()
- double & asDouble ()
- int & asInt ()
- QList<QCoreVariant> & asList ()
- Q_LONGLONG & asLongLong ()
- QMap<QString, QCoreVariant> & asMap ()
- QPoint & asPoint ()
- QRect & asRect ()
- QSize & asSize ()
- QString & asString ()
- QStringList & asStringList ()
- QTime & asTime ()
- uint & asUInt ()
- Q_ULONGLONG & asULongLong ()
- const QByteArray toCString () const

## Member Function Documentation

### QCoreVariant::QCoreVariant ( bool b, int dummy )

Use the QCoreVariant(bool) constructor instead.

### QBitArray & QCoreVariant::asBitArray ()

Use toBitArray() instead.

### bool & QCoreVariant::asBool ()

Use toBool() instead.

### QByteArray & QCoreVariant::asByteArray ()

Use toByteArray() instead.

### QByteArray & QCoreVariant::asCString ()

Use toByteArray() instead.

### QDate & QCoreVariant::asDate ()

Use toDate() instead.

### QDateTime & QCoreVariant::asDateTime ()

Use toDateTime() instead.

### double & QCoreVariant::asDouble ()

Use toDouble() instead.

### int & QCoreVariant::asInt ()

Use toInt() instead.

### QList<QCoreVariant> & QCoreVariant::asList ()

Use toList() instead.

### Q_LONGLONG & QCoreVariant::asLongLong ()

Use toLongLong() instead.

### QMap<QString, QCoreVariant> & QCoreVariant::asMap ()

Use toMap() instead.

### QPoint & QCoreVariant::asPoint ()

Use toPoint() instead.

### QRect & QCoreVariant::asRect ()

Use toRect() instead.

### QSize & QCoreVariant::asSize ()

Use toSize() instead.

### QString & QCoreVariant::asString ()

Use toString() instead.

### QStringList & QCoreVariant::asStringList ()

Use toStringList() instead.

### QTime & QCoreVariant::asTime ()

Use toTime() instead.

### uint & QCoreVariant::asUInt ()

Use toUInt() instead.

### Q_ULONGLONG & QCoreVariant::asULongLong ()

Use toULongLong() instead.

### const QByteArray QCoreVariant::toCString () const

Use toByteArray() instead.