Nesta página

Qt Serial Port C++ Classes

Lista de classes em C++ que permitem o acesso a uma porta serial. Mais...

Classes

QSerialPort

Fornece funções para acessar portas seriais

QSerialPortInfo

Fornecem informações sobre as portas seriais existentes

Descrição detalhada

Para usar ` QSerialPort ` em seu aplicativo, adicione a seguinte instrução `include`:

#include <QSerialPort>

Para o ` QSerialPortInfo`, use a seguinte instrução `include`:

#include <QSerialPortInfo>

Para usar o módulo com o cmake, utilize o comando ` find_package() ` para localizar os componentes necessários do módulo no pacote ` Qt6 `:

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

Para usar o módulo na compilação com o qmake, adicione o módulo como valor da variável ` QT ` no arquivo .pro do projeto:

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.