[Development] QtDriveInfo module in Playground

Иван Комиссаров abbapoh at gmail.com
Fri Mar 1 09:50:00 CET 2013

Yes, it still exists somewhere in Qt5 code, but it's not maintained and provides much less functionality compared to QtDriveInfo.

Also, it has flawed API, in my opinion:)

For example, it's hard to implement drive comparison (i.e. if 2 files are on the same drive or not) using current QSystemStorageInfo API:
> QSystemStorageInfo info;
> if (info.compareDrives(file1, file2)) {
> ...
> }
looks really awkward. Compare with:
> if (QtDriveInfo(file1) == QtDriveInfo(file2)) {
> ....
> }
This can be useful when you have to choose if you can simply rename file, or you should use copy&remove.

Иван Комиссаров

> 01.03.2013, в 12:42, André Somers <andre at familiesomers.nl> написал(а):
> Wasn't there already similar functionality in QtMobility? 
> QSystemStorageInfo seems to provide similar functionality? Or did all 
> that get scrapped in Qt 5?
> André

More information about the Development mailing list