Qt OPC UA
The Qt OPC UA module implements a Qt API to interact with OPC UA servers on top of the open62541 library.
The QML API is still in development but are available as a technology preview. This means those parts are unstable, likely to change, and provided as a convenience only.
Using the Module
QML API
The QML types are available through the QtOpcUa
import. To use the types, add the following import statement to your .qml file:
import QtOpcUa as QtOpcUa
C++ API
Using the C++ API requires linking against the module library, either directly or through other dependencies. Several build tools have dedicated support for this, including CMake and qmake.
Building with CMake
Use the find_package()
command to locate the needed module components in the Qt6 package:
find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget Qt::OpcUa)
Building with qmake
To configure the module for building with qmake, add the module as a value of the QT variable in the project's .pro file:
QT += opcua
Articles and Guides
- Overview
- Using the OpenSSL Dependency for Security Support and GDS
- Building Qt OPC UA Open62541 Plugin
- The Qt OPC UA data type generator
- OPC UA at the OPC foundation
Examples
Reference
Licenses and Attributions
Qt OPC UA is available under commercial licenses from The Qt Company. In addition, it is available under free software licenses: The GNU Lesser General Public License, version 3, or the GNU General Public License, version 2. See Qt Licensing for further details.
Furthermore, Qt OPC UA in Qt 6.8.0 may contain third-party modules under following permissive licenses:
Mozilla Public License 2.0 and Creative Commons Zero v1.0 Universal and Creative Commons Attribution Share Alike 4.0 International and BSD 3-Clause "New" or "Revised" License and Apache License 2.0 and MIT License |