Node QML Type

サーバー上のノードを表します。詳細...

Import Statement: import QtOpcUa
Since: QtOpcUa 5.12
Inherited By:

MethodNode and ValueNode

プロパティ

方法

物件詳細

import QtOpcUa as QtOpcUa

QtOpcUa.Node {
    nodeId : QtOpcUa.NodeId {
        identifier: "s=Example.Method"
        ns: "Example Namespace"
    }
    connection: myConnection
}

プロパティの説明

Status : enumeration

ノードの状態

定数説明
Node.Status.Validノードが使用可能
Node.Status.InvalidNodeIdノードIDが無効
Node.Status.NoConnectionサーバに接続されていない
Node.Status.InvalidNodeTypeサーバー上のノードタイプがQMLタイプと一致しない
Node.Status.InvalidClient無効な接続クライアント
Node.Status.FailedToResolveNodeノードの解決に失敗しました。
Node.Status.InvalidObjectNodeオブジェクト・ノードが無効、またはその型が期待される型と一致しない
Node.Status.FailedToReadAttributes属性の読み取りに失敗しました。
Node.Status.FailedToSetupMonitoringモニタリングのセットアップに失敗しました。

status およびerrorMessageも参照してください


browseName : string

ノードのブラウズ名。情報が利用できない場合は、空の文字列が返されます。


connection : Connection

ノード・インスタンスに使用する接続。関連する接続がサーバへの接続を確立すると、ノードに自動的にアクセスできるようになります。

このプロパティが設定されていない場合、デフォルトの接続が使用されます。

Connection およびConnection::defaultConnectionも参照してください


description : LocalizedText

ノードの説明。情報が利用できない場合は、デフォルトで構築されたLocalizedText が返されます。


displayName : LocalizedText

ノードのローカライズされたテキスト。この情報が利用できない場合は、デフォルトのLocalizedText が返されます。


errorMessage : string [read-only]

現在のステータスコードの文字列表現。

status およびStatusも参照してください


eventFilter : EventFilter

イベントフィルターは、特定の条件下でサーバー上のイベントを監視することができます。

EventFilterも参照して ください。


nodeClass : QOpcUa::NodeClass [read-only]

ノードのノードクラス。情報がない場合はQtOpcUa.Constants.NodeClass.Undefined が返されます。


nodeId : NodeId

使用するサーバー上のノードの ID。これは絶対ノード ID でも相対ノード ID でもかまいません。

NodeId およびRelativeNodeIdも参照してください


readyToUse : bool [read-only]

このプロパティは、ノードが使用可能かどうかを返します。これは、サーバへの接続が正常に確立され、ノードのセットアップに成功した後に一度だけ発生します。


status : Status [read-only]

ノードの現在の状態。ノードが使用可能なのは、ステータスがValid の場合のみです。それ以外の場合はエラーを示します。

errorMessage およびStatusも参照して ください。


メソッド・ドキュメント

Date getServerTimestamp(Constants::NodeAttribute attribute)

指定されたattribute のサーバ・タイムスタンプを返します。


Date getSourceTimestamp(QOpcUa::NodeAttribute attribute)

指定されたattribute のソースタイムスタンプを返します。


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