How to create a new folder in Phone memory Nokia Qt -


I am using the following code to create a new folder in the existing "games" folder, but this is not just the folder Is making. QDir dir ("C: / Games / MyGame"); If (! Dir.exists ()) {dir.mkdir ("C: / Games / MyGame"); } Other {qDebug () & lt; & Lt; Dir.absolutePath () + "exists"; }

Ensure that you have a game code in which C: / < / Code> [Check the program to see if QDir () ("C: / Games /) is returning true.]

Also make sure your C: / folder is a file in your name No, because if you have a file with the same name, the existing folder will also return the function even if it exists, .and mkdir will be incorrect!

  If present ("C: / Games / MyGame"))  

The following part of the code should be made the specified directory. {QDebug ()

Comments