QVariantRef Class
template <typename Pointer> class QVariantRefLe QVariantRef agit comme une référence non-const à un QVariant. Plus....
| En-tête : | #include <QVariantRef> |
| CMake : | find_package(Qt6 REQUIRED COMPONENTS Core)target_link_libraries(mytarget PRIVATE Qt6::Core) |
| qmake : | QT += core |
| Depuis : | Qt 6.0 |
Fonctions publiques
| QVariantRef(const Pointer *pointer) | |
| QVariant | operator QVariant() const |
| QVariantRef<Pointer> & | operator=(QVariantRef<Pointer> &&value) |
| QVariantRef<Pointer> & | operator=(const QVariant &value) |
| QVariantRef<Pointer> & | operator=(const QVariantRef<Pointer> &value) |
Description détaillée
Comme les itérateurs génériques n'instancient pas réellement un QVariant à chaque étape, ils ne peuvent pas renvoyer une référence à l'un d'entre eux par operator*(). QVariantRef fournit la même fonctionnalité qu'une référence réelle à QVariant, mais est soutenu par un pointeur donné en tant que paramètre de modèle. Le modèle est implémenté pour les pointeurs de type QSequentialIterator et QAssociativeIterator.
Documentation des fonctions membres
[explicit] QVariantRef::QVariantRef(const Pointer *pointer)
Crée un QVariantRef à partir d'un pointer.
QVariant QVariantRef::operator QVariant() const
Résout le QVariantRef en un QVariant réel.
QVariantRef<Pointer> &QVariantRef::operator=(QVariantRef<Pointer> &&value)
Affecte un nouveau value à la valeur indiquée par le pointeur auquel ce QVariantRef se réfère.
QVariantRef<Pointer> &QVariantRef::operator=(const QVariant &value)
Affecte un nouveau value à la valeur indiquée par le pointeur auquel ce QVariantRef se réfère.
QVariantRef<Pointer> &QVariantRef::operator=(const QVariantRef<Pointer> &value)
Affecte un nouveau value à la valeur indiquée par le pointeur auquel ce QVariantRef se réfère.
© 2025 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.