Ok, I found out that you cant create directories with iostream.
I found the class QDir, but I dont know how to create a directory...
I tried it with:

Qt Code:
  1. QDir* Dir = new QDir("logs");
  2. if (!Dir->exists())
  3. {
  4. Dir->mkdir("../logs/");
  5. }
To copy to clipboard, switch view to plain text mode 

And with Dir->mkdir("logs"); , ... and so on. But a directory was never created.
How to do this???
The directory should be created in the same directory where my applications runs.