[Interest] When is QDir::Drives useful?

André Somers andre at familiesomers.nl
Tue Jul 31 08:33:38 CEST 2012

Op 31-7-2012 8:30, André Somers schreef:
> Op 31-7-2012 8:20, Nikos Chantziaras schreef:
>> Nope.  I just tested it under Windows XP and 7.  The contents of "/" are
>> the contents of "C:/".  Which makes sense, since Windows completely
>> lacks the concept of a single root directory.  So I guess the question
>> remains open.
> Who said that / is the root directory on Windows?
> Try "", or better yet, the result of QDir::rootPath();
> André
BTW: note that for instance QFileSystemModel uses the same flags, and 
also can display the windows "root" directory (or My Computer) listing 
the drives.


More information about the Interest mailing list