File system format of an SD Card in Qt?
-
I am new in Qt. I am working on an app where I need to display the file format(e.g. FAT32, NTFS) of the SD card that is connected to my PC.
Is their a Qt API that can help me achieve the result??? I looked through QFSFileEngine and QAbstractFileEngine but didnt find anything related to File format.
Thanks you :)
-
Thank you. Could you please elaborate on which API's I can use :)
[quote author="amccarthy" date="1363074584"]Qt doesn't provide any API to get the filesystem type. You will need to use native APIs.[/quote] -
This really depends on the underlying OS, i.e linux you can read information from sysfs (There are other possibilities like Solid from KDE), OS X has the File System Events api (they might have something else), Windows has the GetVolumeInformation api etc..
-
Please take a look at "QtDriveInfo":https://gitorious.org/qdrive and "QtStorageInfo":http://qt.gitorious.org/qt/qtsystems classes.
-
I tried QDriveInfo sample code but it throws an error:
Cannot Open #include <QDriveInfo>
[quote author="sierdzio" date="1363079248"]Please take a look at "QtDriveInfo":https://gitorious.org/qdrive and "QtStorageInfo":http://qt.gitorious.org/qt/qtsystems classes.[/quote] -
It's not built into Qt, it's a separate project that tries to become part of Qt, but will probably be rejected due to QStorageInfo being available in Qt Mobility.
So, you have to look for some sore of readme on how to install and use it on your machine.
-
I am looking into it.Thank you :)
[quote author="sierdzio" date="1363080444"]It's not built-in Qt, it's a separate project that tries to become part of Qt, but will probably be rejected due to QStorageInfo available in Qt Mobility.
So, you have to look for some sore of readme on how to install and use it on your machine.[/quote]