Sur cette page

SimpleAttributeOperand QML Type

Le type « SimpleAttributeOperand » 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 déconseillons fortement de l'utiliser dans du nouveau code.

Propriétés

Description détaillée

L'opérande SimpleAttributeOperand est défini dans la norme OPC UA 1.05, partie 4, section 7.7.4.5. Il est utilisé lorsqu'un attribut de nœud est requis en tant qu'opérande.

Par exemple, l'opérande d'attribut simple suivant représente la valeur du champ « Severity » du type d'événement de base :

import QtOpcUa as QtOpcUa

QtOpcUa.SimpleAttributeOperand {
    identifier: "Severity"
    ns: "http://opcfoundation.org/UA/"
}

Documentation sur les propriétés

browsePath : list<OpcUaNodeId>

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

import QtOpcUa as QtOpcUa

QtOpcUa.SimpleAttributeOperand {
    ...
    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.SimpleAttributeOperand {
    ...
    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.SimpleAttributeOperand {
    ...
    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. La valeur par défaut est "ns=0;i=2041".

import QtOpcUa as QtOpcUa

QtOpcUa.SimpleAttributeOperand {
    ...
    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.