Auf dieser Seite

QModbusTcpClient Class

Die Klasse „QModbusTcpClient“ ist die Schnittstellenklasse für Modbus-TCP-Client-Geräte. Mehr...

Header: #include <QModbusTcpClient>
CMake: find_package(Qt6 REQUIRED COMPONENTS SerialBus)
target_link_libraries(mytarget PRIVATE Qt6::SerialBus)
qmake: QT += serialbus
Erbt von: QModbusClient

Öffentliche Funktionen

QModbusTcpClient(QObject *parent = nullptr)
virtual ~QModbusTcpClient()

Neu implementierte geschützte Funktionen

virtual void close() override
virtual bool open() override

Ausführliche Beschreibung

QModbusTcpClient kommuniziert mit dem Modbus-Backend und bietet Anwendern eine komfortable API.

Dokumentation der Mitgliedsfunktionen

[explicit] QModbusTcpClient::QModbusTcpClient(QObject *parent = nullptr)

Erstellt einen `QModbusTcpClient` mit dem angegebenen ` parent`.

[virtual noexcept] QModbusTcpClient::~QModbusTcpClient()

Löscht die Instanz „ QModbusTcpClient “.

[override virtual protected] void QModbusTcpClient::close()

Implementiert: QModbusDevice::close().

[override virtual protected] bool QModbusTcpClient::open()

Implementiert neu: QModbusDevice::open().

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