I am trying to embed a SQLite database of user data into a custom file type that stores other user data. I have been trying to figure out how to open an SQLite database using a filestream (instead of just a filename). Is this possible?

Alternatively we could store the data in some other format (say XML). Is there an easy way of converting an SQLite QSQLDatabase object into an QDOMDocument?
Thanks for the help.