56MyCustomStruct
c2 =
v.value<MyCustomStruct>();
64if (
v.canConvert<MyCustomStruct>())
65 c =
v.value<MyCustomStruct>();
68int i =
v.value<
int>();
70MyCustomStruct
c2 =
v.value<MyCustomStruct>();
84v.canConvert<MyCustomStruct>();
The QAssociativeIterable class is an iterable interface for an associative container in a QVariant.
QTaggedIterator< QAssociativeConstIterator, void > const_iterator
The QColor class provides colors based on RGB, HSV or CMYK values.
\inmodule QtCore\reentrant
iterator insert(const Key &key, const T &value)
Inserts a new item with the key and a value of value.
The QSequentialIterable class is an iterable interface for a container in a QVariant.
QTaggedIterator< QSequentialConstIterator, void > const_iterator
\macro QT_RESTRICTED_CAST_FROM_ASCII
void setValue(T &&avalue)
int toInt(bool *ok=nullptr) const
Returns the variant as an int if the variant has userType() \l QMetaType::Int, \l QMetaType::Bool,...
static auto fromValue(T &&value) noexcept(std::is_nothrow_copy_constructible_v< T > &&Private::CanUseInternalSpace< T >) -> std::enable_if_t< std::conjunction_v< std::is_copy_constructible< T >, std::is_destructible< T > >, QVariant >
bool canConvert(QMetaType targetType) const
QSet< QString >::iterator it
QList< QString > QStringList
Constructs a string list that contains the given string, str.
GLsizei const GLfloat * v
[13]
GLuint GLfloat GLfloat GLfloat GLfloat GLfloat z
GLint GLint GLint GLint GLint x
[0]
GLenum GLenum GLenum GLenum mapping
QHash< int, QString > mapping
[9]