QtRemoteObjects Namespace
QtRemoteObjects 命名空间包含“远程对象”模块中使用的标识符,以及由Replica 编译器(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()。
© 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.