54MyCustomStruct
c2 =
v.value<MyCustomStruct>();
62if (
v.canConvert<MyCustomStruct>())
63 c =
v.value<MyCustomStruct>();
66int i =
v.value<
int>();
68MyCustomStruct
c2 =
v.value<MyCustomStruct>();
82v.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.
\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.
const_iterator end() const
const_iterator begin() const
\macro QT_RESTRICTED_CAST_FROM_ASCII
QTaggedIterator is a template class that wraps an iterator and exposes standard iterator traits.
int toInt(bool *ok=nullptr) const
Returns the variant as an int if the variant has userType() \l QMetaType::Int, \l QMetaType::Bool,...
bool canConvert(QMetaType targetType) const
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 >
void setValue(T &&avalue)
Stores a copy of value.
QSet< QString >::iterator it
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]