Unsolved How to access usb name in debian from QT
-
Hi all!
I'm trying to create a GUI based application which provide information of connected USB device in my raspberry pi board(OS-Linux/Debian ). I have tried a lot of things using directory modification method, not getting proper result.
please help me for better approach to get usb device name in linux in qt gui. -
Hi,
What exactly did you try ?
libusb can be a solution.
-
Hi,
which class in qt is to be used to scan pen drive name using libusb -
How i can scan active pen drive name connected in raspberry pi running on (Debian based OS) .
-
@qt_ankit_developer said in How to access usb name in debian from QT:
which class in qt is to be used to scan pen drive name using libusb
None, you have to use libusb directly.
-
Hi,
A possible other solution could be KDE's Solid framework.
-
@Christian-Ehrlicher
Hi,
I am trying to write code to get name of USB devices from libusb library.
Is their any example code to get USB device name from libusb library. -
@qt_ankit_developer said in How to access usb name in debian from QT:
Is their any example code to get USB device name from libusb library.
https://stackoverflow.com/questions/14722083/how-to-use-libusb-and-libusb-get-device-descriptor
-
@jsulm
Hi,
In this libusb file descriptor give information about vendor id but I need USB name. -
@qt_ankit_developer I don't know. This now has nothing to do with Qt. Search on the Internet. Something I found: https://sourceforge.net/p/libusb/mailman/message/34503180/
-
Are you by chance talking about flash memory drives and want to get their mountpoint?
Then https://doc.qt.io/qt-5/qstorageinfo.html might be of help.
Regards
-
@aha_1980
Hi,
I am also trying to include QStorage class by this class is integrated in qt after qt 5.4 but my qt version is qt 5.3.2 thats why i am not able to include this class in my qt project.
suggest me another method to find out usb flash name.
thanks . -
why not just update to Qt5.4 then.
It should just work since its such a minor jump in version. -
@mrjj
Hi,
if u know that command which directly upgrade 5.3.2 to 5.4 .share with me.
i also want to upgrade my qt -
Hi
Well it's so old that the maintenance tool does not have it.In any case, its not really upgrading. Its either replace 5.3.2 or
concurrent 5.4 installed.
You can download installer from
https://download.qt.io/archive/qt/5.4/5.4.2/Make sure to backup your Debian
so its easy to go back if something
should go broke.