When my QT app starts first time on MacOS, its directory ./Application Support/Sharlines/Lines/
does not exit, but QT creates it when I write to QSettings
first time.
To create the local directory I added the following code:
// Local data directory does not exist when the app is run first time on MacOS.
if (fs::create_directories(GetLocalFolder()))
{
qDebug() << static_cast<QString>(qtil::Format() << "Local folder '" << GetLocalFolder() << "' has been created.");
}