QVariantPointer Class
template <typename Pointer> class QVariantPointerEmulated pointer to QVariant based on a pointer. More...
Header: | #include <QVariantPointer> |
CMake: | find_package(Qt6 COMPONENT Core) target_link_libraries(mytarget PUBLIC Qt::Core) |
qmake: | QT += core |
Since: | Qt 6.0 |
Detailed Description
QVariantConstPointer wraps a pointer and returns QVariantRef to it from its operator*(). This makes it suitable as replacement for an actual pointer. We cannot return an actual pointer from generic iterators as the iterators don't hold an actual QVariant.