Command Line Enumerator Example | Qt Serial Port 6.4.1

- Qt 6.4
- Qt Serial Port
- Qt Serial Port Examples
- Command Line Enumerator Example
- Qt 6.4.1 Reference Documentation

# Command Line Enumerator Example

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

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

This command line example displays information about serial ports in a console, 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