101 MyCustomStruct
c2 =
v.value<MyCustomStruct>();
109 if (
v.canConvert<MyCustomStruct>())
110 c =
v.value<MyCustomStruct>();
113 int i =
v.value<
int>();
115 MyCustomStruct
c2 =
v.value<MyCustomStruct>();
129 v.canConvert<MyCustomStruct>();
The QAssociativeIterable class is an iterable interface for an associative container in a QVariant.
const_iterator begin() const
const_iterator end() const
The QColor class provides colors based on RGB, HSV or CMYK values.
The QDataStream class provides serialization of binary data to a QIODevice.
iterator insert(const Key &key, const T &value)
The QObject class is the base class of all Qt objects.
The QSequentialIterable class is an iterable interface for a container in a QVariant.
const_iterator end() const
const_iterator begin() const
The QString class provides a Unicode character string.
QTaggedIterator is a template class that wraps an iterator and exposes standard iterator traits.
The QVariant class acts like a union for the most common Qt data types.
static auto fromValue(const T &value) -> std::enable_if_t< std::is_copy_constructible_v< T >, QVariant >
int toInt(bool *ok=nullptr) const
bool canConvert(QMetaType targetType) const
void setValue(T &&avalue)
QList< QString > QStringList
GLsizei const GLfloat * v
[13]
GLuint GLfloat GLfloat GLfloat GLfloat GLfloat z
GLint GLint GLint GLint GLint x
[0]
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLenum GLenum GLenum GLenum mapping
qDebug("Type is %s", v.typeName())
QHash< int, QString > mapping
[9]