本页内容

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::FetchRootSize0在发出initialized 信号之前,仅请求模型的大小,在此之前不会预取任何数据。
QtRemoteObjects::PrefetchData1在发出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.