+
+ // First possibility (works with Linux, not tested on Windows:
+ // QDir cwd;
+ // cwd.mkpath(dbFilenameInfo.absolutePath());
+
+ // Second possibility (works on Windows)
+ dbFilenameInfo.absoluteDir().mkpath(".");
+
+ // We don't have to handle errors because in worst case, opening the database will fail
+ // and db.isOpen() returns false.