QVariant

Undocumented in source but is binding to C++. You might be able to learn more by searching the web for its name.
extern (C++) extern (C++)
@QMetaType.Type.QVariant
@Q_MOVABLE_TYPE
struct QVariant {}

Constructors

this
this(Type type)
Undocumented in source.
this
this(int typeId, const(void)* copy)
Undocumented in source.
this
this(int typeId, const(void)* copy, uint flags)
Undocumented in source.
this
this(const(QVariant) other)
Undocumented in source.
this
this(QDataStream s)
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(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(const(QDate) date)
Undocumented in source.
this
this(const(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(QRegExp) regExp)
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.

Destructor

~this
~this()
Undocumented in source.

Postblit

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

Members

Aliases

DataPtr
alias DataPtr = Private
Undocumented in source.
f_canConvert
alias f_canConvert = ExternCPPFunc!(bool function(const(QVariant.Private)* d, int t))
Undocumented in source.
f_clear
alias f_clear = ExternCPPFunc!(void function(Private*))
Undocumented in source.
f_compare
alias f_compare = ExternCPPFunc!(bool function(const(Private)*, const(Private)*))
Undocumented in source.
f_construct
alias f_construct = ExternCPPFunc!(void function(Private*, const(void)*))
Undocumented in source.
f_convert
alias f_convert = ExternCPPFunc!(bool function(const(QVariant.Private)* d, int t, void*, bool*))
Undocumented in source.
f_load
alias f_load = ExternCPPFunc!(void function(Private*, ref QDataStream))
Undocumented in source.
f_null
alias f_null = ExternCPPFunc!(bool function(const(Private)*))
Undocumented in source.
f_save
alias f_save = ExternCPPFunc!(void function(const(Private)*, ref QDataStream))
Undocumented in source.

Enums

Type
enum Type
Undocumented in source.

Functions

canConvert
bool canConvert(int targetTypeId)
Undocumented in source.
clear
void clear()
Undocumented in source.
cmp
bool cmp(const(QVariant) other)
Undocumented in source.
compare
int compare(const(QVariant) other)
Undocumented in source.
constData
const(void)* constData()
Undocumented in source.
convert
bool convert(int targetTypeId)
Undocumented in source.
convert
bool convert(const(int) t, 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.
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.
save
void save(QDataStream ds)
Undocumented in source.
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.
toRegExp
QRegExp toRegExp()
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.
typeName
const(char)* typeName()
Undocumented in source.
userType
int userType()
Undocumented in source.

Static functions

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.
typeToName
const(char)* typeToName(int typeId)
Undocumented in source.

Structs

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

Variables

d
Private d;
Undocumented in source.

Meta