I have Qt 5.0.1 on Windows 7 64-bit and I have downloaded and installed QtSerialPort following instructions on Wiki. I use MS VC++ Express 2010 compiler.

With simple example code from cenumerator I get 0 ports available. However, in Control Panel and using terminal program I can connect to my serial device.
I also did a quick Python script and it works from there using PySerial.

Any thoughts how to fix this?

Qt Code:
  1. QList<QSerialPortInfo> serialPortInfoList = QSerialPortInfo::availablePorts();
  2. QTextStream out(stdout);
  3.  
  4. out << QObject::tr("Total number of ports available: ") << serialPortInfoList.count() << endl;
  5.  
  6. foreach (const QSerialPortInfo &serialPortInfo, serialPortInfoList) {
  7. out << endl
  8. << QObject::tr("Port: ") << serialPortInfo.portName() << endl
  9. << QObject::tr("Location: ") << serialPortInfo.systemLocation() << endl
  10. << QObject::tr("Description: ") << serialPortInfo.description() << endl
  11. << QObject::tr("Manufacturer: ") << serialPortInfo.manufacturer() << endl
  12. << QObject::tr("Vendor Identifier: ") << (serialPortInfo.hasVendorIdentifier() ? QByteArray::number(serialPortInfo.vendorIdentifier(), 16) : QByteArray()) << endl
  13. << QObject::tr("Product Identifier: ") << (serialPortInfo.hasProductIdentifier() ? QByteArray::number(serialPortInfo.productIdentifier(), 16) : QByteArray()) << endl
  14. << QObject::tr("Busy: ") << (serialPortInfo.isBusy() ? QObject::tr("Yes") : QObject::tr("No")) << endl;
  15. }
To copy to clipboard, switch view to plain text mode 


Qt Code:
  1. QT += core gui sql serialport
To copy to clipboard, switch view to plain text mode 

Output:

Total number of ports available: 0