QtRemoteObjects Namespace
L'espace de noms QtRemoteObjects contient les identifiants utilisés dans le module « Remote Objects », ainsi que certaines fonctions appelées à partir du code généré par le compilateur Replica (repc). En savoir plus…
| En-tête : | #include <QtRemoteObjects> |
| CMake : | find_package(Qt6 REQUIRED COMPONENTS RemoteObjects) target_link_libraries(mytarget PRIVATE Qt6::RemoteObjects) |
| qmake : | QT += remoteobjects |
Types
| enum | InitialAction { FetchRootSize, PrefetchData } |
Documentation sur les types
enum QtRemoteObjects::InitialAction
Ce type d'énumération spécifie l'action initiale lors de l'acquisition d'une réplique dérivée de QAbstractItemModel.
| Constante | Valeur | Description |
|---|---|---|
QtRemoteObjects::FetchRootSize | 0 | Seule la taille du modèle est demandée avant l'émission du signal « initialized » ; aucune donnée n'est préchargée avant cela. |
QtRemoteObjects::PrefetchData | 1 | Certaines données peuvent être préchargées avant l’émission du signal ` initialized `. |
Voir également ` QRemoteObjectNode::acquireModel()` et ` QRemoteObjectReplica::initialized()`.
© 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.