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]
このプロパティは、ノードが使用可能な状態にあるかどうかを返す。これは、サーバへの接続が正常に確立され、ノードのセットアップが正常に行われた後に一度だけ発生します。
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.