qt6-bb10/tests/auto/corelib/kernel/qvariant
Ulf Hermann 217a25a6bf QMetaType: Allow registration of mutable views and register iterables
In order to modify a container through an iterable, we need the original
container to be mutable. The iterable, then, is not a conversion of the
container, but rather a view on the container. The concept may be
extended to other types.

In order to facilitate this, provide a set of methods in QMetaType and
QVariant similar to the convert family. The new methods are non-const
and expect the original value to stay available during the life time of
the view.

Change-Id: I363621033f7fc600edcea2acb786820ccba49c86
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
2020-09-19 11:14:36 +02:00
..
stream Remove QRegExp from QVariant 2020-05-14 12:19:47 +00:00
.gitignore
.prev_CMakeLists.txt CMake: Regenerate tests projects 2020-03-12 11:41:39 +01:00
CMakeLists.txt Implement QMetaType::canConvert() and use it in QVariant 2020-08-24 00:18:24 +02:00
qvariant.pro Implement QMetaType::canConvert() and use it in QVariant 2020-08-24 00:18:24 +02:00
qvariant.qrc
tst_qvariant.cpp QMetaType: Allow registration of mutable views and register iterables 2020-09-19 11:14:36 +02:00