Enumerator Example

Shows how to display information about serial devices in a system.

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.

Example project @ code.qt.io