QtRemoteObjects Namespace
QtRemoteObjects 命名空间包含 Remote Objects 模块中使用的标识符,以及Replica Compiler (repc) 生成的代码中使用的一些函数。更多
头文件: | #include <QtRemoteObjects> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS RemoteObjects) target_link_libraries(mytarget PRIVATE Qt6::RemoteObjects) |
qmake: | QT += remoteobjects |
类型
enum | InitialAction { FetchRootSize, PrefetchData } |
类型文档
enum QtRemoteObjects::InitialAction
该枚举类型指定了获取源自QAbstractItemModel 的副本时的初始操作。
常量 | 值 | 说明 |
---|---|---|
QtRemoteObjects::FetchRootSize | 0 | 在发出initialized 信号之前,只要求获取模型的大小,在此之前不会预取任何数据。 |
QtRemoteObjects::PrefetchData | 1 | 某些数据可以在initialized 信号发出前被预取。 |
另请参阅 QRemoteObjectNode::acquireModel() 和QRemoteObjectReplica::initialized()。
© 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.