このページについて

Qt Serial Port 例

この Qt Serial Port モジュールでは、API の使用方法を理解するための参考として、以下の例を用意しています。

例の実行

サンプルは次の手順で実行できます:

Blocking Receiver

非GUIスレッドで QSerialPort の同期 API を使用する方法を示します。

Blocking Sender

ワーカースレッドで QSerialPort の同期 API を使用する方法を示します。

Serial Terminal

QSerialPortのさまざまな機能の使用方法を示します。

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