이 페이지에서

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

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