Node QML Type
サーバー上のノードを表します。詳細...
| Import Statement: | import QtOpcUa |
| Since: | QtOpcUa 5.12 |
| Inherited By: | MethodNode and ValueNode |
| Status: | Deprecated since 6.9 |
この型は QtOpcUa 6.9 以降、非推奨となっています。新しいコードでの使用は強く推奨しません。
プロパティ
- Status : enumeration
- browseName : string
- connection : Connection
- description : LocalizedText
- displayName : LocalizedText
- errorMessage : string
- eventFilter : EventFilter
- nodeClass : QOpcUa::NodeClass
- nodeId : NodeId
- readyToUse : bool
- status : Status
方法
- Date getServerTimestamp(Constants::NodeAttribute attribute)
- Date getSourceTimestamp(QOpcUa::NodeAttribute attribute)
詳細説明
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]
現在のステータスコードの文字列表現。
eventFilter : EventFilter
イベントフィルタを使用すると、特定の条件に基づいてサーバー上のイベントを監視することができます。
「EventFilter」も参照してください 。
nodeClass : QOpcUa::NodeClass [read-only]
そのノードのノードクラス。情報が利用できない場合は、QtOpcUa.Constants.NodeClass.Undefined が返されます。
nodeId : NodeId
使用するサーバー上のノードのID。絶対ノードIDまたは相対ノードIDを指定できます。
NodeId およびRelativeNodeIdも参照してください 。
readyToUse : bool [read-only]
このプロパティは、ノードが使用可能かどうかを返します。これは、サーバーへの接続が正常に確立され、ノードの設定が正常に完了した後、1回だけ実行されます。
status : Status [read-only]
ノードの現在のステータス。ステータスが「Valid 」の場合にのみ、ノードを使用できます。それ以外の場合は、エラーが発生していることを示しています。
「 errorMessage 」および「Status 」も参照してください 。
メソッドのドキュメント
Date getServerTimestamp(Constants::NodeAttribute attribute)
指定されたattribute のサーバータイムスタンプを返します。
Date getSourceTimestamp(QOpcUa::NodeAttribute attribute)
指定されたattribute のソースタイムスタンプを返します。
© 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.