Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Find list of special folders in Windows using Qt
Dilshad last edited by
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.
lgeyer last edited by
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.