QSharedData Class
La classe QSharedData est une classe de base pour les objets de données partagées. Plus d'informations...
| En-tête : | #include <QSharedData> |
| CMake : | find_package(Qt6 REQUIRED COMPONENTS Core)target_link_libraries(mytarget PRIVATE Qt6::Core) |
| qmake : | QT += core |
Note : Toutes les fonctions de cette classe sont réentrantes.
Fonctions publiques
| QSharedData() | |
| QSharedData(const QSharedData &) |
Description détaillée
QSharedData est conçu pour être utilisé avec QSharedDataPointer ou QExplicitlySharedDataPointer afin d'implémenter des classes personnalisées implicitement partagées ou explicitement partagées. QSharedData permet un comptage de références à l'abri des threads.
Voir QSharedDataPointer et QExplicitlySharedDataPointer pour plus de détails.
Documentation des fonctions membres
[noexcept] QSharedData::QSharedData()
Construit un objet QSharedData avec un nombre de références égal à 0.
[noexcept] QSharedData::QSharedData(const QSharedData &)
Construit un objet QSharedData avec un nombre de références de 0. Le paramètre est ignoré.
© 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.