Qt Serial Port

Qt Serial Port 는 구성, I/O 작업, RS-232 핀아웃의 제어 신호 가져오기 및 설정을 위한 기본 기능을 제공합니다.

다음 항목은 이 모듈에서 지원되지 않습니다:

  • 에코, 제어 CR/LF 등과 같은 터미널 기능.
  • 데이터 전송을 위한 텍스트 모드 표시.
  • 읽기 또는 쓰기 중 타임아웃 및 지연 구성.
  • 핀아웃 신호 변경에 대한 알림.

모듈 사용하기

Qt 모듈의 C++ API를 사용하려면 모듈 라이브러리에 직접 또는 다른 종속성을 통해 링크해야 합니다. CMakeqmake를 비롯한 여러 빌드 도구가 이를 지원합니다.

CMake로 빌드하기

find_package() 명령을 사용하여 Qt6 패키지에서 필요한 모듈 컴포넌트를 찾습니다:

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

자세한 내용은 CMake로 빌드 개요를 참조하세요.

qmake로 빌드하기

qmake로 빌드하도록 모듈을 구성하려면 프로젝트의 .pro 파일에 QT 변수의 값으로 모듈을 추가합니다:

QT += serialport

모듈 진화

Qt SerialPort의 변경 사항에는 Qt 6 시리즈에 적용된 모듈 API 및 기능의 중요한 변경 사항이 나열되어 있습니다.

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