02-19-2013 04:03 AM
I want to use a listview to show entries from a sql database located in the data folder.
How can i reference it in qml?
SqlDataAccess error: "unable to open new database file "/apps/com.isec7.bb10.testDev_c7_bb10_sapfb6e0ff_/
The db is in the data directory, so the path looks correct.
it works when i read the path from c++, but i would like to know why it is not working from qml directly.
02-19-2013 04:15 AM
Could you try:
If this won't work then I assume it requires an absolute path together with file:// prefix.
This page suggests using QDir from C++ code to retrieve the working directory and passing it back to QML (at the bottom of page):
02-19-2013 04:26 AM
02-19-2013 09:35 AM