QRemoteObjectDynamicReplica Class
A dynamically instantiated Replica 更多...
头文件: | #include <QRemoteObjectDynamicReplica> |
qmake: | QT += remoteobjects |
基类: | QRemoteObjectReplica |
公有函数
- 6 个公有函数继承自 QRemoteObjectReplica
- 32 个公有函数继承自 QObject
其他继承的成员
- 2 个属性继承自 QRemoteObjectReplica
- 1 个属性继承自 QObject
- 1 个公有槽函数继承自 QObject
- 2 个信号继承自 QRemoteObjectReplica
- 2 个信号继承自 QObject
- 1 个公有变量继承自 QObject
- 10 个静态公有成员继承自 QObject
- 9 个受保护的函数继承自 QObject
- 2 个受保护的变量继承自 QObject
详细描述
A dynamically instantiated Replica
There are generated replicas (replicas having the header files produced by the Replica Compiler), and dynamic replicas, which are generated on-the-fly. This is the class for the dynamic type of replica.
When the connection to the Source object is made, the initialization step passes the current property values (see Replica Initialization). 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.
This class does not have a public constructor. It can only be instantiated by using the dynamic QRemoteObjectNode::acquire method.