Nesta página

QOpcUaRelativePathElement Class

O RelativePathElement do OPC UA. Saiba mais...

Cabeçalho: #include <QOpcUaRelativePathElement>
CMake: find_package(Qt6 REQUIRED COMPONENTS OpcUa)
target_link_libraries(mytarget PRIVATE Qt6::OpcUa)
qmake: QT += opcua

Funções públicas

QOpcUaRelativePathElement()
QOpcUaRelativePathElement(const QOpcUaQualifiedName &target, QOpcUa::ReferenceTypeId refType)
QOpcUaRelativePathElement(const QOpcUaQualifiedName &target, const QString &refType)
QOpcUaRelativePathElement(const QOpcUaRelativePathElement &rhs)
bool includeSubtypes() const
bool isInverse() const
QString referenceTypeId() const
void setIncludeSubtypes(bool includeSubtypes)
void setIsInverse(bool isInverse)
void setReferenceTypeId(QOpcUa::ReferenceTypeId referenceTypeId)
void setReferenceTypeId(const QString &referenceTypeId)
void setTargetName(const QOpcUaQualifiedName &targetName)
QOpcUaQualifiedName targetName() const
(since 6.7) operator QVariant() const
QOpcUaRelativePathElement &operator=(const QOpcUaRelativePathElement &rhs)
(since 6.7) bool operator!=(const QOpcUaRelativePathElement &lhs, const QOpcUaRelativePathElement &rhs)
bool operator==(const QOpcUaRelativePathElement &lhs, const QOpcUaRelativePathElement &rhs)

Descrição detalhada

QOpcUaRelativePathElement define um elemento de um caminho relativo em um servidor OPC UA. Isso é necessário para a resolução de caminhos de navegação para IDs de nós em ` QOpcUaNode::resolveBrowsePath()`.

Documentação da função de membro

QOpcUaRelativePathElement::QOpcUaRelativePathElement()

Cria um elemento de caminho relativo com ambos os sinalizadores definidos como “ false ”.

QOpcUaRelativePathElement::QOpcUaRelativePathElement(const QOpcUaQualifiedName &target, QOpcUa::ReferenceTypeId refType)

Cria um elemento de caminho relativo com targetName target , QOpcUa::ReferenceTypeId refType e ambos os sinalizadores definidos como false.

QOpcUaRelativePathElement::QOpcUaRelativePathElement(const QOpcUaQualifiedName &target, const QString &refType)

Cria um elemento de caminho relativo com targetName target , o ID do nó do tipo referência refType e ambos os sinalizadores definidos como false.

QOpcUaRelativePathElement::QOpcUaRelativePathElement(const QOpcUaRelativePathElement &rhs)

Cria um elemento de caminho relativo a partir de rhs.

bool QOpcUaRelativePathElement::includeSubtypes() const

Retorna o valor do sinalizador `includeSubtypes`.

Veja também ` setIncludeSubtypes()`.

bool QOpcUaRelativePathElement::isInverse() const

Retorna o valor do indicador isInverse.

Veja também ` setIsInverse()`.

QString QOpcUaRelativePathElement::referenceTypeId() const

Retorna o identificador do tipo da referência que conecta este nó ao nó anterior.

Veja também setReferenceTypeId().

void QOpcUaRelativePathElement::setIncludeSubtypes(bool includeSubtypes)

Define o sinalizador ` includeSubtypes ` como ` includeSubtypes`. Se o sinalizador for ` true`, a pesquisa também segue referências com subtipos de ` referenceTypeId`().

Veja também includeSubtypes().

void QOpcUaRelativePathElement::setIsInverse(bool isInverse)

Define o sinalizador “ isInverse ” como “ isInverse ”. Se o sinalizador for “ true ”, a consulta segue a referência reversa.

Veja também isInverse().

void QOpcUaRelativePathElement::setReferenceTypeId(QOpcUa::ReferenceTypeId referenceTypeId)

Define o ID do tipo de referência como referenceTypeId.

Veja também referenceTypeId().

void QOpcUaRelativePathElement::setReferenceTypeId(const QString &referenceTypeId)

Define o ID do tipo de referência como “ referenceTypeId ”.

void QOpcUaRelativePathElement::setTargetName(const QOpcUaQualifiedName &targetName)

Define o nome do destino como targetName, por exemplo, QOpcUaQualifiedName(0, "DataTypes").

Veja também targetName().

QOpcUaQualifiedName QOpcUaRelativePathElement::targetName() const

Retorna o nome qualificado do destino da referência.

Veja também setTargetName().

[since 6.7] QOpcUaRelativePathElement::operator QVariant() const

Retorna um objeto ` QVariant ` contendo esse elemento de caminho relativo.

Essa função foi introduzida no Qt 6.7.

QOpcUaRelativePathElement &QOpcUaRelativePathElement::operator=(const QOpcUaRelativePathElement &rhs)

Define os valores de ` rhs ` neste elemento de caminho relativo.

Não-membros relacionados

[noexcept, since 6.7] bool operator!=(const QOpcUaRelativePathElement &lhs, const QOpcUaRelativePathElement &rhs)

Retorna ` true ` se ` lhs ` tiver um valor diferente de ` rhs`.

Essa função foi introduzida no Qt 6.7.

[noexcept] bool operator==(const QOpcUaRelativePathElement &lhs, const QOpcUaRelativePathElement &rhs)

Retorna ` true ` se ` lhs ` tiver o mesmo valor que ` rhs`.

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.