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:
if(!dir.exists())
{
qDebug() << "Creating " << path1 << "directory";
dir.mkdir(path1);
}
else
{
qDebug() << path1 << " already exists";
}
QString path1 = "Documents";
QDir dir(path1);
if(!dir.exists())
{
qDebug() << "Creating " << path1 << "directory";
dir.mkdir(path1);
}
else
{
qDebug() << path1 << " already exists";
}
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.
Bookmarks