Hi,

I read many many tutorials in internet how we can create new folder(directory) using QT.Unfortunately i can't have success with no one.I'm on Mac OS X 10.10 with Qt 5.7.

What i make is:

Qt Code:
  1. QString path1 = "Documents";
  2.  
  3. QDir dir(path1);
  4. if(!dir.exists())
  5. {
  6. qDebug() << "Creating " << path1 << "directory";
  7. dir.mkdir(path1);
  8. }
  9. else
  10. {
  11. qDebug() << path1 << " already exists";
  12. }
To copy to clipboard, switch view to plain text mode 

I also can't understand how to create folder in Users/Library/Application Support/My_program_name_folder
using QStandardPaths in this case QStandardPaths:ataLocation.