Line 15 is pointless. Compare my code and Your.
Line 15 is pointless. Compare my code and Your.
Can you access this database using the sqlite3 command line program and execute your query successfully? If not, then your Qt program certainly won't be able to either.
Since you are specifying a relative file name for your database, you may be creating an empty file inadvertently by opening your database in a different working directory than you think.
Try hard coding the fully qualified file path and see if that works and/or search your drive for your file name and see if you have another file created somewhere you did not intend, etc.
Last edited by jefftee; 16th April 2015 at 17:28.
Bookmarks