<div dir="ltr">You shouldn't write in /usr/* directory. Rather use standard path:<div>SeeĀ <a href="https://lists.sailfishos.org/pipermail/devel/2014-February/003258.html">https://lists.sailfishos.org/pipermail/devel/2014-February/003258.html</a><br>
<div><br></div><div><br></div><div>See also:</div><div><a href="http://comments.gmane.org/gmane.comp.handhelds.sailfishos.devel/3632" target="_blank">http://comments.gmane.org/gmane.comp.handhelds.sailfishos.devel/3632</a><br>

</div><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-08-03 15:00 GMT+02:00 Krisztian Olah <span dir="ltr"><<a href="mailto:fasza2mobile@gmail.com" target="_blank">fasza2mobile@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi I need a bit of help with saving my database. When I do:<div><br><div>QSqlDatabase db;</div><div>db.setDatabaseName("/usr/share/<harbour-myapp>/data/data.sqlite")</div>
<div>
db.open()</div><div>...</div></div><div><br></div><div>I get this error: "QSqlQuery::exec: database not open"</div><div>thus the file isn't created at all.</div><div>However if I change name to "data.sqlite" it works fine, but saves it to /home/nemo/</div>

<div>Could someone tell me what I need to do in order to save the file under the correct path?</div><div><br></div><div>Thanks in advance</div><div>Kris</div>
</div>
<br>_______________________________________________<br>
SailfishOS.org Devel mailing list<br>
To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org">devel-unsubscribe@lists.sailfishos.org</a><br></blockquote></div><br></div>