QVariantRef Class
template <typename Pointer> class QVariantRefThe QVariantRef acts as a non-const reference to a QVariant. More...
Header: | #include <QVariantRef> |
CMake: | find_package(Qt6 COMPONENT Core) target_link_libraries(mytarget PUBLIC Qt::Core) |
qmake: | QT += core |
Since: | Qt 6.0 |
Detailed Description
As the generic iterators don't actually instantiate a QVariant on each step, they cannot return a reference to one from operator*(). QVariantRef provides the same functionality as an actual reference to a QVariant would, but is backed by a pointer given as template parameter. The template is implemented for pointers of type QSequentialIterator and QAssociativeIterator.