QVariant

Binding for C++ class QVariant.

extern (C++) extern (C++)
@Q_RELOCATABLE_TYPE
struct QVariant {}

Constructors

this
this(QMetaType type, const(void)* copy)
Undocumented in source.
this
this(const(QVariant) other)
Undocumented in source.
this
this(int i)
Undocumented in source.
this
this(uint ui)
Undocumented in source.
this
this(qlonglong ll)
Undocumented in source.
this
this(qulonglong ull)
Undocumented in source.
this
this(bool b)
Undocumented in source.
this
this(double d)
Undocumented in source.
this
this(float f)
Undocumented in source.
this
this(const(QByteArray) bytearray)
Undocumented in source.
this
this(const(QBitArray) bitarray)
Undocumented in source.
this
this(const(QString) string)
Undocumented in source.
this
this(QLatin1String string)
Undocumented in source.
this
this(const(QStringList) stringlist)
Undocumented in source.
this
this(QChar qchar)
Undocumented in source.
this
this(QDate date)
Undocumented in source.
this
this(QTime time)
Undocumented in source.
this
this(const(QDateTime) datetime)
Undocumented in source.
this
this(const(QList!(QVariant)) list)
Undocumented in source.
this
this(const(QSize) size)
Undocumented in source.
this
this(const(QSizeF) size)
Undocumented in source.
this
this(const(QPoint) pt)
Undocumented in source.
this
this(const(QPointF) pt)
Undocumented in source.
this
this(const(QLine) line)
Undocumented in source.
this
this(const(QLineF) line)
Undocumented in source.
this
this(const(QRect) rect)
Undocumented in source.
this
this(const(QRectF) rect)
Undocumented in source.
this
this(const(QLocale) locale)
Undocumented in source.
this
this(const(QRegularExpression) re)
Undocumented in source.
this
this(const(QEasingCurve) easing)
Undocumented in source.
this
this(const(QUuid) uuid)
Undocumented in source.
this
this(const(QUrl) url)
Undocumented in source.
this
this(const(QModelIndex) modelIndex)
Undocumented in source.
this
this(const(QPersistentModelIndex) modelIndex)
Undocumented in source.
this
this(Type type)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Postblit

this(this)
this(this)
Undocumented in source.

Members

Aliases

DataPtr
alias DataPtr = Private
Undocumented in source.

Enums

Type
enum Type
Undocumented in source.

Functions

canConvert
bool canConvert(QMetaType targetType)
Undocumented in source. Be warned that the author may not have intended to support it.
canConvert
bool canConvert(int targetTypeId)
Undocumented in source. Be warned that the author may not have intended to support it.
canConvert
bool canConvert()
Undocumented in source. Be warned that the author may not have intended to support it.
canView
bool canView(QMetaType targetType)
Undocumented in source. Be warned that the author may not have intended to support it.
canView
bool canView()
Undocumented in source. Be warned that the author may not have intended to support it.
clear
void clear()
Undocumented in source.
constData
const(void)* constData()
Undocumented in source. Be warned that the author may not have intended to support it.
convert
bool convert(QMetaType type)
Undocumented in source.
convert
bool convert(int targetTypeId)
Undocumented in source. Be warned that the author may not have intended to support it.
convert
bool convert(int type, void* ptr)
Undocumented in source.
data
void* data()
Undocumented in source.
data
const(void)* data()
Undocumented in source. Be warned that the author may not have intended to support it.
data_ptr
DataPtr data_ptr()
Undocumented in source. Be warned that the author may not have intended to support it.
data_ptr
const(DataPtr) data_ptr()
Undocumented in source. Be warned that the author may not have intended to support it.
detach
void detach()
Undocumented in source.
equals
bool equals(const(QVariant) other)
Undocumented in source.
isDetached
bool isDetached()
Undocumented in source. Be warned that the author may not have intended to support it.
isNull
bool isNull()
Undocumented in source.
isValid
bool isValid()
Undocumented in source. Be warned that the author may not have intended to support it.
load
void load(QDataStream ds)
Undocumented in source.
metaType
QMetaType metaType()
Undocumented in source.
save
void save(QDataStream ds)
Undocumented in source.
setValue
void setValue(const(QVariant) avalue)
Undocumented in source. Be warned that the author may not have intended to support it.
toBitArray
QBitArray toBitArray()
Undocumented in source.
toBool
bool toBool()
Undocumented in source.
toByteArray
QByteArray toByteArray()
Undocumented in source.
toChar
QChar toChar()
Undocumented in source.
toDate
QDate toDate()
Undocumented in source.
toDateTime
QDateTime toDateTime()
Undocumented in source.
toDouble
double toDouble(bool* ok)
Undocumented in source.
toEasingCurve
QEasingCurve toEasingCurve()
Undocumented in source.
toFloat
float toFloat(bool* ok)
Undocumented in source.
toInt
int toInt(bool* ok)
Undocumented in source.
toLine
QLine toLine()
Undocumented in source.
toLineF
QLineF toLineF()
Undocumented in source.
toList
QList!(QVariant) toList()
Undocumented in source.
toLocale
QLocale toLocale()
Undocumented in source.
toLongLong
qlonglong toLongLong(bool* ok)
Undocumented in source.
toModelIndex
QModelIndex toModelIndex()
Undocumented in source.
toPersistentModelIndex
QPersistentModelIndex toPersistentModelIndex()
Undocumented in source.
toPoint
QPoint toPoint()
Undocumented in source.
toPointF
QPointF toPointF()
Undocumented in source.
toReal
qreal toReal(bool* ok)
Undocumented in source.
toRect
QRect toRect()
Undocumented in source.
toRectF
QRectF toRectF()
Undocumented in source.
toRegularExpression
QRegularExpression toRegularExpression()
Undocumented in source.
toSize
QSize toSize()
Undocumented in source.
toSizeF
QSizeF toSizeF()
Undocumented in source.
toString
QString toString()
Undocumented in source.
toStringList
QStringList toStringList()
Undocumented in source.
toTime
QTime toTime()
Undocumented in source.
toUInt
uint toUInt(bool* ok)
Undocumented in source.
toULongLong
qulonglong toULongLong(bool* ok)
Undocumented in source.
toUrl
QUrl toUrl()
Undocumented in source.
toUuid
QUuid toUuid()
Undocumented in source.
type
Type type()
Undocumented in source. Be warned that the author may not have intended to support it.
typeId
int typeId()
Undocumented in source. Be warned that the author may not have intended to support it.
typeName
const(char)* typeName()
Undocumented in source.
userType
int userType()
Undocumented in source. Be warned that the author may not have intended to support it.
value
T value()
Undocumented in source. Be warned that the author may not have intended to support it.
view
bool view(int type, void* ptr)
Undocumented in source.

Static functions

compare
QPartialOrdering compare(const(QVariant) lhs, const(QVariant) rhs)
Undocumented in source.
fromValue
QVariant fromValue(T value)
Undocumented in source. Be warned that the author may not have intended to support it.
nameToType
Type nameToType(const(char)* name)
Undocumented in source. Be warned that the author may not have intended to support it.
typeToName
const(char)* typeToName(int typeId)
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

Private
struct Private
Undocumented in source.
PrivateShared
struct PrivateShared
Undocumented in source.

Variables

d
Private d;
Undocumented in source.

Meta