About qt5 serialport class

  • I have a usb-to-serial PL2303, I hope serial port class auto detect it and add or delete it at combobox when I insert or pull out. What I want to know is how to AUTO set the signal to my slot when this usb device insert or pull out.

  • QSerialPort is an I/O device, it has nothing to do with your OS detecting new hardware. you can use libusb to detect plug events. see an example here

  • @VRonin THANK YOU!

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.