Qt Remote Objects 網絡主機節點。 更多...
| import 語句: | import QtRemoteObjects 5.15 |
| 實例化: | QRemoteObjectHost |
The Host type provides an entry point to a Qt Remote Objects network. A network can be as simple as two nodes, or an arbitrarily complex set of processes and devices.
Hosts have the same capabilities as Nodes, but they can also be connected to and can share source objects on the network.
用於節點的主機地址。
這是此節點將駐留的遠程源對象的地址。
禁用遠程訪問
QObject
remoteObject
。返迴
false
若當前節點是客戶端節點,或者若
remoteObject
未注冊,和返迴
true
若 Source (源) 對象成功禁用遠程。
警告: 此對象的復本將不再有效,在調用此方法後。
另請參閱 enableRemoting() .
使主機節點能夠動態提供遠程訪問 QObject object 。連接到托管此對象的節點的客戶端節點,可以獲得此源的復本。
可選 name defines the lookup-name under which the QObject can be acquired using QRemoteObjectNode::acquire() . If not explicitly set then the name given in the QCLASSINFO_REMOTEOBJECT_TYPE will be used. If no such macro was defined for the QObject 那麼 QObject::objectName() 被使用。
返迴
false
若當前節點是客戶端節點,或者若
QObject
已注冊為遠程,和
true
若成功啓用遠程為動態
QObject
.
另請參閱 disableRemoting() .