[SailfishDevel] sqlite absolute path

Krisztian Olah fasza2mobile at gmail.com
Sun Aug 3 13:00:33 UTC 2014

Hi I need a bit of help with saving my database. When I do:

QSqlDatabase db;

I get this error: "QSqlQuery::exec: database not open"
thus the file isn't created at all.
However if I change name to "data.sqlite" it works fine, but saves it to
Could someone tell me what I need to do in order to save the file under the
correct path?

Thanks in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20140803/2c4a8a55/attachment.html>

More information about the Devel mailing list