QRemoteObjectDynamicReplica Class | Qt Remote Objects 5.12.9

- Qt 5.12
- Qt Remote Objects
- C++ Classes
- QRemoteObjectDynamicReplica
- Qt 5.12.9 Reference Documentation

# QRemoteObjectDynamicReplica Class

A dynamically instantiated Replica. More...

Header: | #include <QRemoteObjectDynamicReplica>
qmake: | QT += remoteobjects
Inherits: | QRemoteObjectReplica

- List of all members, including inherited members
- Obsolete members

## Public Functions

virtual | ~QRemoteObjectDynamicReplica() override

- 6 public functions inherited from QRemoteObjectReplica
- 31 public functions inherited from QObject

### Additional Inherited Members

- 2 properties inherited from QRemoteObjectReplica
- 1 property inherited from QObject
- 1 public slot inherited from QObject
- 2 signals inherited from QRemoteObjectReplica
- 2 signals inherited from QObject
- 9 static public members inherited from QObject
- 9 protected functions inherited from QObject

## Detailed Description

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.

## Member Function Documentation

### `[override virtual]` QRemoteObjectDynamicReplica::~QRemoteObjectDynamicReplica()

Destroys the dynamic replica.

See also Replica Ownership.