PDA

View Full Version : Detect USB-device



Eduardo Huerta
5th January 2019, 01:02
How can I detect a USB-device (serial port) in qt? This device is a data acquisition card. Can I use QSerialPort to detect this device?
Thanks for help me.

ChrisW67
5th January 2019, 05:52
Can I use QSerialPort to detect this device?
QSerialPortInfo::availablePorts() can be used to list the serial ports detected on the system. Whether it will detect a particular USB-serial adapter will probably require an experiment.