QSharedData Class
A classe QSharedData é uma classe base para objetos de dados compartilhados. Mais...
| Cabeçalho: | #include <QSharedData> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Core) target_link_libraries(mytarget PRIVATE Qt6::Core) |
| qmake: | QT += core |
Observação: Todas as funções desta classe são reentrantes.
Funções públicas
| QSharedData() | |
| QSharedData(const QSharedData &) | |
| ~QSharedData() | |
| QSharedData & | operator=(const QSharedData &) |
Descrição detalhada
QSharedData foi projetada para ser usada com QSharedDataPointer ou QExplicitlySharedDataPointer para implementar classes personalizadas de compartilhamento implícito ou explícito. QSharedData fornece contagem de referências segura para threads.
Consulte QSharedDataPointer e QExplicitlySharedDataPointer para obter detalhes.
Documentação das funções de membro
[noexcept] QSharedData::QSharedData()
Cria um objeto QSharedData com uma contagem de referências igual a 0.
[noexcept] QSharedData::QSharedData(const QSharedData &)
Cria um objeto QSharedData com contagem de referências igual a 0. O parâmetro é ignorado.
[constexpr noexcept default] QSharedData::~QSharedData()
Destrói a instância de ` QSharedData`.
[delete] QSharedData &QSharedData::operator=(const QSharedData &)
Copia e atribui other a esta instância de QSharedData. Esta função foi excluída.
© 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.