QVariantPointer Class
template <typename Pointer> class QVariantPointerQVariantPointer es una clase de plantilla que emula un puntero a QVariant basado en un puntero. Más...
| Cabecera: | #include <QVariantPointer> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Core)target_link_libraries(mytarget PRIVATE Qt6::Core) |
| qmake: | QT += core |
| Desde: | Qt 6.0 |
| Estado: | Hasta 6.15 |
Esta clase está programada para ser obsoleta en la versión 6.15.
Funciones Públicas
| QVariantPointer(const Pointer *pointer) | |
| QVariantRef<Pointer> | operator*() const |
| Pointer | operator->() const |
Descripción detallada
Utilice QVariant::Pointer en su lugar.
QVariantConstPointer envuelve un puntero y devuelve QVariantRef a él desde su operador*(). Esto lo hace adecuado como reemplazo de un puntero real. No podemos devolver un puntero real desde iteradores genéricos ya que los iteradores no contienen un QVariant real.
Documentación de funciones miembro
[explicit] QVariantPointer::QVariantPointer(const Pointer *pointer)
Construye un QVariantPointer a partir de la dirección pointer.
QVariantRef<Pointer> QVariantPointer::operator*() const
Dereferences the QVariantPointer to a QVariantRef.
Pointer QVariantPointer::operator->() const
Dereferencia y devuelve el puntero. Se espera que el puntero también implemente operator->().
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.