このページでは

QModbusTcpClient Class

QModbusTcpClient クラスは、Modbus TCP クライアントデバイスのインターフェースクラスです。詳細...

ヘッダー: #include <QModbusTcpClient>
CMake: find_package(Qt6 REQUIRED COMPONENTS SerialBus)
target_link_libraries(mytarget PRIVATE Qt6::SerialBus)
qmake: QT += serialbus
継承元: QModbusClient

パブリック関数

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

再実装された保護関数

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

詳細な説明

QModbusTcpClient は、Modbus バックエンドと通信し、ユーザーに便利な API を提供します。

メンバ関数のドキュメント

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

指定されたparent を使用して、QModbusTcpClientを構築します。

[virtual noexcept] QModbusTcpClient::~QModbusTcpClient()

QModbusTcpClient インスタンスを破棄します。

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

QModbusDevice::close() を再実装しています。

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

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.