Qt 5.9 | Qt Serial Port | Qt Serial Port Examples | Enumerator Example

Qt 5.9.4 Reference Documentation

# Enumerator Example

Enumerator shows how to use the class QSerialPortInfo for getting information about serial devices that are present in the system.

This GUI example displays information about serial ports in a widget, provided by the class QSerialPortInfo.

For getting information about the available ports, use the static method availablePorts().

## Running the Example

To run the example from Qt Creator, open the Welcome mode and select the example from Examples. For more information, visit Building and Running an Example.

Files:

- enumerator/main.cpp
- enumerator/enumerator.pro