C++ (Qt)QStringList names = namesFromPorts(SerialPort::availablePorts());
C++ (Qt)QStringList names = SerialDevice::availablePortNames();
C++ (Qt)foreach(const SerialPortInfo &info, SerialPortInfo::availablePorts()) comboBox->addItem(info.name());