このページでは

Qt Serial Port C++ Classes

シリアルポートへのアクセスを可能にするC++クラスの一覧。詳細...

クラス

QSerialPort

シリアルポートにアクセスするための関数を提供します

QSerialPortInfo

既存のシリアルポートに関する情報を提供します

詳細説明

アプリケーションでQSerialPort を使用するには、次のインクルード文を追加してください:

#include <QSerialPort>

QSerialPortInfo を使用する場合は、次のインクルード文を使用してください:

#include <QSerialPortInfo>

cmake でこのモジュールを使用するには、`find_package() ` コマンドを使用して、Qt6 パッケージ内の必要なモジュールコンポーネントを指定します:

find_package(Qt6 REQUIRED COMPONENTS SerialPort)
target_link_libraries(mytarget PRIVATE Qt6::SerialPort)

qmake を使用してビルドする場合、プロジェクトの .pro ファイル内で `QT ` 変数の値としてこのモジュールを追加してください:

QT += serialport

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