Find list of special folders in Windows using Qt
-
Hello,
Is it possible to get a list of the Special Folders in Windows 7 using Qt 4.7.4
I need to know in which directory the Operating System is installed and which folders I have write- access to.
Special Folders will include folders like 'Desktop', 'Program Data', etc....
These folders may or may not be hidden.I appreciate your time and response.
Thank you in advance. -
"QDesktopServices":http://developer.qt.nokia.com/doc/qt-4.8/qdesktopservices.html#storageLocation
For the Windows folder I either would use qgetenv("WINDIR") or native GetWindowsDirectory().
Use QFile or QFileInfo to determine if the directory is writable or not.