Qt OPC UA

この Qt OPC UAモジュールは、open62541ライブラリ上で OPC UA サーバと対話するための Qt API を実装しています。

QML APIはQt 6.9で非推奨とされ、将来のバージョンで削除される予定です。

モジュールの使用

QML API

QML typesQtOpcUa import から利用できます。型を使用するには、.qml ファイルに以下の import 文を追加してください:

import QtOpcUa as QtOpcUa

C++ API

C++ API を使用するには、モジュールライブラリを直接リンクするか、他の依存関係を通 してリンクする必要があります。CMakeやqmakeを含むいくつかのビルドツールは、このための専用サポートを持っています。

CMakeでビルドする

find_package() コマンドを使って、Qt6 パッケージの中から必要なモジュールコンポーネントを探します:

find_package(Qt6 REQUIRED COMPONENTS OpcUa)
target_link_libraries(mytarget Qt::OpcUa)

qmakeでビルドする

qmakeでビルドするようにモジュールを設定するには、プロジェクトの.proファイルにQT変数の値としてモジュールを追加します:

QT += opcua

記事とガイド

リファレンス

ライセンスと使用許諾

Qt OPC UA は、The Qt Companyの商用ライセンスで入手可能です。さらに、フリーソフトウェアライセンスでも利用可能です:GNU Lesser General Public License, version 3 またはGNU General Public License, version 2。詳細はQt ライセンスを参照してください。

さらに、Qt 6.9.0のQt OPC UA 、以下の寛容なライセンスの下でサードパーティモジュールを含むことができます:

Open62541, version v1.4.9

Mozilla Public License 2.0、Creative Commons Zero v1.0 Universal、Creative Commons Attribution Share Alike 4.0 International、BSD 3-Clause "New" or "Revised" License、Apache License 2.0、MIT License。

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