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é

>
>
> On 31/07/12 09:10, Scott Aron Bloom wrote:
>> That has not been my experience... However, it has been a while since I have 
>> used it.  IIRC it would return the list of drives available ...
>>
>> Maybe some code would help us figure out what is going on.
>>
>> Scott
>> -----Original Message-----
>> From: interest-bounces+scott.bloom=onshorecs....@qt-project.org 
>> [mailto:interest-bounces+scott.bloom=onshorecs....@qt-project.org] On Behalf 
>> Of Nikos Chantziaras
>> Sent: Monday, July 30, 2012 11:00 PM
>> To: interest@qt-project.org
>> Subject: Re: [Interest] When is QDir::Drives useful?
>>
>> The root directory on Windows contains the root directory of the currently 
>> active drive.  If the current drive is C:, then the contents consist of 
>> stuff like "Windows", "Program Files", "Users", etc.  No drives in there.
>>
>>
>> On 31/07/12 08:26, André Somers wrote:
>>> How about the root directory on windows, for instance?
>>>
>>> André
>>>
>>> Op 31 jul. 2012 om 07:21 heeft Nikos Chantziaras <rea...@gmail.com> het 
>>> volgende geschreven:
>>>
>>>> According to:
>>>>
>>>>      http://qt-project.org/doc/qt-4.8/qdir.html#Filter-enum
>>>>
>>>> "QDir::Drives" lists drives.  Which directory would you have to open
>>>> though that could possibly contain disk entries?
>
> _______________________________________________
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to