QtRemoteObjects 名稱空間

The QtRemoteObjects namespace contains identifiers used in the Remote Objects module, as well as some functions used from code generated by the 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 Only the size of the model is requested before the initialized signal is emitted, no data will be prefetched before that.
QtRemoteObjects::PrefetchData 1 Some data can be prefetched before the initialized 信號發射。

另請參閱 QRemoteObjectNode::acquireModel () 和 QRemoteObjectReplica::initialized ().