Sur cette page

AttributeOperand QML Type

Le type « AttributeOperand » d'OPC UA. En savoir plus...

Import Statement: import QtOpcUa
Since: QtOpcUa 5.13
Status: Deprecated since 6.9

Ce type est obsolète depuis QtOpcUa 6.9. Nous vous déconseillons fortement de l'utiliser dans du nouveau code.

Propriétés

Description détaillée

L'AttributeOperand est défini dans la norme OPC UA 1.05, partie 4, section 7.7.4.4. Il a la même fonction que l'SimpleAttributeOperand, mais offre davantage d'options de configuration.

Documentation sur la propriété

alias : string

Nom d'alias de l'opérande. Cela permet d'utiliser cette instance comme opérande pour d'autres opérations dans le filtre.

browsePath : list<OpcUaNodeId>

Chemin d'accès au nœud contenant l'attribut.

import QtOpcUa as QtOpcUa

QtOpcUa.AttributeOperand {
    ...
    browsePath: [
        QtOpcUa.NodeId {
            identifier: "Message"
            ns: "http://opcfoundation.org/UA/"
         }
         ...
    ]
}

indexRange : string

Chaîne de caractères définissant une plage d'index utilisée pour identifier une valeur unique ou un sous-ensemble des valeurs de l'attribut.

import QtOpcUa as QtOpcUa

QtOpcUa.AttributeOperand {
    ...
    indexRange: "0:2"
}

nodeAttribute : Constants.NodeAttribute

Attribut du nœud vers lequel pointe browsePath. La valeur par défaut est Constants.NodeAttribute.Value.

import QtOpcUa as QtOpcUa

QtOpcUa.AttributeOperand {
    ...
    nodeAttribute: QtOpcUa.Constants.NodeAttribute.Value
}

typeId : string

Identifiant du nœud de définition de type. L'opérande sera de ce type ou d'un de ses sous-types.

import QtOpcUa as QtOpcUa

QtOpcUa.AttributeOperand {
    ...
    typeId: "ns=0;i=2041"
}

© 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.