Emulated const pointer to QVariant based on a pointer. More...
Header: | #include <QVariantConstPointer> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Core) target_link_libraries(mytarget PRIVATE Qt6::Core) |
qmake: | QT += core |
Since: | Qt 6.0 |
QVariantConstPointer(QVariant variant) | |
QVariant | operator*() const |
const QVariant * | operator->() const |
QVariantConstPointer wraps a QVariant and returns it from its operator*(). This makes it suitable as replacement for an actual const pointer. We cannot return an actual const pointer from generic iterators as the iterators don't hold an actual QVariant.
Constructs a QVariantConstPointer from a variant.
Dereferences the QVariantConstPointer to retrieve its internal QVariant.
Returns a const pointer to the QVariant, conforming to the conventions for operator->().
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: