Table of contents
1、QSerialPort
QSerialPort
It is a class used for serial communication in the Qt framework. It provides the functions of configuring the serial port, sending and receiving data.
The following are QSerialPort
some commonly used functions and methods of classes:
open(QIODevice::OpenMode mode)
: Open the serial port.mode
Parameters can be set toQIODevice::ReadOnly
(read-only mode),QIODevice::WriteOnly
(write-only mode) orQIODevice::ReadWrite
(read-write mode).close()
: close string