Hi folks,
is there a way to get the Windows system directory with Qt 4?
The documentation does not show nothings useful as far as I can see
Thank you,
Roby
Hi folks,
is there a way to get the Windows system directory with Qt 4?
The documentation does not show nothings useful as far as I can see
Thank you,
Roby
As far as I know the system directory is stored in one of the environment variables, so you can just use getenv() to fetch that.
see QProcess::systemEnvironment().
It's static.
regards
Qt Code:
#include <stdlib.h> char *getenv(const char *name);To copy to clipboard, switch view to plain text mode
Bookmarks