QRemoteObjectDynamicReplica 類

動態實例化 復本 更多...

頭: #include <QRemoteObjectDynamicReplica>
qmake: QT += remoteobjects
繼承: QRemoteObjectReplica

公共函數

~QRemoteObjectDynamicReplica ()

額外繼承成員

詳細描述

動態實例化 復本

There are generated replicas (replicas having the header files produced by the RepC (復本編譯器) ), and dynamic replicas, which are generated on-the-fly. This is the class for the dynamic type of replica.

當連接到 Source object is made, the initialization step passes the current property values (see Replica 初始化 ). In a DynamicReplica, the property/signal/slot details are also sent, allowing the replica object to be created on-the-fly. This can be conventient in QML or scripting, but has two primary disadvantages. First, the object is in effect "empty" until it is successfully initialized by the Source . Second, in C++, calls must be made using QMetaObject::invokeMethod (), as the moc generated lookup will not be available.

此類沒有公共構造函數。隻可以實例化它通過使用動態 QRemoteObjectNode::acquire 方法。

成員函數文檔編製

QRemoteObjectDynamicReplica:: ~QRemoteObjectDynamicReplica ()

銷毀動態復本。

另請參閱 復本所有權 .