Qt Serial Port C++ Classes

직렬 포트에 액세스할 수 있는 C++ 클래스 목록입니다. 더 보기...

클래스

QSerialPort

직렬 포트에 액세스하는 함수를 제공합니다.

QSerialPortInfo

기존 직렬 포트에 대한 정보를 제공합니다.

상세 설명

애플리케이션에서 QSerialPort 를 사용하려면 다음 include 문을 추가하세요:

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