Listing drives of a certain type (usb, network, fixed hard drives)
General and Desktop
6
Posts
3
Posters
1.5k
Views
1
Watching
-
Hi,
I have a (windows) program in which I like to list the USB drives that are attached. I like to keep it OS independent (if possible), but that is not a requirement
@ aInfoList = aDir.drives();
for (i = 0; i < aInfoList.count(); i++)
{
/ * need something like
if (aInfoList.at(i).drivetype == USB_DRIVE)
*/
ui->comboBoxDrives->addItem(aInfoList.at(i).absoluteFilePath(), Qt::DisplayRole);
}@Is this possible?
-
Hi,
There's KDE's solid library that might help
-
AFAIK, some parts of QtMobility have been moved to Qt but not all