QOpcUaAddReferenceItem#

This class stores the necessary information to add a new reference on the server. More

Synopsis#

Functions#

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description#

See also

addReference()

class PySide6.QtOpcUa.QOpcUaAddReferenceItem#

PySide6.QtOpcUa.QOpcUaAddReferenceItem(other)

Parameters:

otherPySide6.QtOpcUa.QOpcUaAddReferenceItem

Default constructs an add reference item with no parameters set.

Constructs an add reference item from other.

PySide6.QtOpcUa.QOpcUaAddReferenceItem.isForwardReference()#
Return type:

bool

Returns the isForwardReference flag.

PySide6.QtOpcUa.QOpcUaAddReferenceItem.referenceTypeId()#
Return type:

str

Returns the reference type id.

PySide6.QtOpcUa.QOpcUaAddReferenceItem.setIsForwardReference(isForwardReference)#
Parameters:

isForwardReference – bool

Sets the isForwardReference flag to isForwardReference. If the flag is set, a forward reference is created. Otherwise, an inverse reference is created.

PySide6.QtOpcUa.QOpcUaAddReferenceItem.setReferenceTypeId(referenceTypeId)#
Parameters:

referenceTypeId – str

Sets the reference type id to referenceTypeId. A reference of this type will be created on the server.

PySide6.QtOpcUa.QOpcUaAddReferenceItem.setSourceNodeId(sourceNodeId)#
Parameters:

sourceNodeId – str

Sets the node id of the source node to sourceNodeId.

See also

sourceNodeId()

PySide6.QtOpcUa.QOpcUaAddReferenceItem.setTargetNodeClass(targetNodeClass)#
Parameters:

targetNodeClassNodeClass

Sets the node class of the target node to targetNodeClass. The target node class shall be specified because the target node might be located on another server.

PySide6.QtOpcUa.QOpcUaAddReferenceItem.setTargetNodeId(targetNodeId)#
Parameters:

targetNodeIdPySide6.QtOpcUa.QOpcUaExpandedNodeId

Sets the node id of the target node to targetNodeId.

See also

targetNodeId()

PySide6.QtOpcUa.QOpcUaAddReferenceItem.setTargetServerUri(targetServerUri)#
Parameters:

targetServerUri – str

Sets the URI of the target server to targetServerUri. If this value is set, it will override the server URI from setTargetNodeId() .

PySide6.QtOpcUa.QOpcUaAddReferenceItem.sourceNodeId()#
Return type:

str

Returns the source node id.

PySide6.QtOpcUa.QOpcUaAddReferenceItem.targetNodeClass()#
Return type:

NodeClass

Returns the target node class.

PySide6.QtOpcUa.QOpcUaAddReferenceItem.targetNodeId()#
Return type:

PySide6.QtOpcUa.QOpcUaExpandedNodeId

Returns the target node id.

PySide6.QtOpcUa.QOpcUaAddReferenceItem.targetServerUri()#
Return type:

str

Returns the target server URI.