<div dir="ltr">Hi I need a bit of help with saving my database. When I do:<div><br><div style>QSqlDatabase db;</div><div style>db.setDatabaseName("/usr/share/<harbour-myapp>/data/data.sqlite")</div><div style>
db.open()</div><div style>...</div></div><div style><br></div><div style>I get this error: "QSqlQuery::exec: database not open"</div><div style>thus the file isn't created at all.</div><div style>However if I change name to "data.sqlite" it works fine, but saves it to /home/nemo/</div>
<div style>Could someone tell me what I need to do in order to save the file under the correct path?</div><div style><br></div><div style>Thanks in advance</div><div style>Kris</div>
</div>