QSharedData Class
La classe `QSharedData` est une classe de base pour les objets de données partagées. En savoir plus...
| En-tête : | #include <QSharedData> |
| CMake : | find_package(Qt6 REQUIRED COMPONENTS Core) target_link_libraries(mytarget PRIVATE Qt6::Core) |
| qmake : | QT += core |
Remarque : toutes les fonctions de cette classe sont réentrantes.
Fonctions publiques
| QSharedData() | |
| QSharedData(const QSharedData &) | |
| ~QSharedData() | |
| QSharedData & | operator=(const QSharedData &) |
Description détaillée
QSharedData est conçue pour être utilisée avec QSharedDataPointer ou QExplicitlySharedDataPointer afin d’implémenter des classes personnalisées à partage implicite ou explicite. QSharedData fournit un comptage de références sûr pour les threads.
Voir QSharedDataPointer et QExplicitlySharedDataPointer pour plus de détails.
Documentation des fonctions membres
[noexcept] QSharedData::QSharedData()
Crée un objet QSharedData dont le compteur de références est égal à 0.
[noexcept] QSharedData::QSharedData(const QSharedData &)
Crée un objet QSharedData avec un compteur de références égal à 0. Le paramètre est ignoré.
[constexpr noexcept default] QSharedData::~QSharedData()
Supprime l'instance de ` QSharedData`.
[delete] QSharedData &QSharedData::operator=(const QSharedData &)
Copie et attribue « other » à cette instance « QSharedData ». Cette fonction est supprimée.
© 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.