This is a basic SQLite question...so basic I am afraid no one has asked this stupid of a question...

So in the sample code for 'Music Archive' under the SQL section there is a database.h file that has this code snippet:
QSqlDatabase db = QSqlDatabase::addDatabase("QSQLITE");
db.setDatabaseName(":memory:");

I get that the database will be in memory and is just virtual. But what if I make a slight change:
QSqlDatabase db = QSqlDatabase::addDatabase("QSQLITE");
db.setDatabaseName("test.db");

From the documentation it says it will try to open test.db, and if it doesn't exist it will create it, which makes sense. But where is it created. If I run the program and leave the program running I would expect to be able to find the test.db file....but it isn't there. I am building it on a Mac at the moment. I glanced through the code to see if I could see it was opening the DB file and then closing or deleting it, therefor I wasn't able to see it. But I didn't see anything.

What I want to do is open an XML file read it in and insert the contents of the XML file into a DB file. But I need to create a physical SQLite file. I was just looking at the sample code and everything is using :memory:. Any insight would be appreciated.

The Mac