Qserialport qt4/9/2023 Here is a simple example to illustrate all serial devices on a computer.įirst, you need to add the following to the pro file: Usage methodįirst, the use of QSerial PortInfo is introduced. QSerial PortInfo is an auxiliary class that can provide various information about the available serial ports in a computer. The QSerialPort class provides various interfaces for manipulating serial ports. The current QtSerialPort module provides two C++ classes, QSerialPort and QSerialPortInfo. This article briefly talks about the use of QtSerialPort module. Now, QtSerialPort module is provided in Qt5.1, which is convenient for programmers to develop applications of serial port quickly. In previous versions of Qt, there was no official support for RS232 serial port, so it was inconvenient to write serial port program. However, RS232 serial port is still widely used in industry because of its simple operation and reliable communication. Although RS232 interface is no longer available on most household PC s.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |