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 <[email protected]> написал(а):
> 
> Wasn't there already similar functionality in QtMobility? 
> QSystemStorageInfo seems to provide similar functionality? Or did all 
> that get scrapped in Qt 5?
> 
> André
> 

_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to