+ strPath = QDir().homePath() + "/.marketstoday/OfflineStorage";
+ QDir configDir(strPath);
+ qDebug() << "Config path is " << strPath;
+ if (!configDir.exists()){
+ bool created = configDir.mkpath(strPath);
+ if (!created){
+ qDebug() << "Unable to create config directory at " << strPath;
+ }
+ }
+ qmlView.engine()->setOfflineStoragePath(strPath);