Qt Serial Port C++ Classes
シリアル・ポートへのアクセスを可能にするC++クラスのリスト。詳細...
クラス
シリアル・ポートにアクセスする関数を提供する | |
既存のシリアル・ポートに関する情報の提供 |
詳細説明
アプリケーションでQSerialPort を使用するには、以下のインクルード・ステートメントを追加します:
#include <QSerialPort>
QSerialPortInfo の場合は、次の include 文を使用します:
#include <QSerialPortInfo>
cmake でモジュールを使用するには、find_package()
コマンドを使用して、必要なモジュール・コンポーネントをQt6
パッケージに見つけます:
find_package(Qt6 REQUIRED COMPONENTS SerialPort)
target_link_libraries(mytarget PRIVATE Qt6::SerialPort)
qmakeでモジュールを使用するには、プロジェクトの.proファイルにQT
変数の値としてモジュールを追加します:
QT += serialport
© 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.