Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
List hotpluggable devices in combobox
-
Hello guys, I'm using QT on Linux. I am trying to list hot-pluggable devices like pendrive in a combo box. Can anyone advise me on how I can do this?
-
@Dylan-Holt You can try https://doc.qt.io/qt-5/qstorageinfo.html#mountedVolumes
Or go for https://stackoverflow.com/questions/16450160/usb-programming-with-qt
-
@Dylan-Holt
cross platform approach:
https://forum.qt.io/topic/91162/how-to-get-information-about-the-connected-device
if you need a dynamic notification when a device is inserted: http://libusb.sourceforge.net/api-1.0/hotplug.html
-
Hi,
To add to my fellow, another cross-platform library is KDE's Solid framework
-
Thank you guys for the suggestions. I will give them a try.