I have an application that is using an SQLite database. I am trying to follow Qt examples by connecting via the conneciton.h file, but do not seem to get it.
I have main.cpp call gui.cpp which creates a stackedWidget with 4 widgets, 2 of these will (may) someday include QTableViews that are simple read-only tables from a database. I have seperated the 4 different widgets into their own classes (which are also in different files - not sure if that is important or not). I am trying to have one of the widget classes query the db and the query returns false.
Where should I actually put the "createConnection()" call (it's in main.cpp right now), and how do I get a pointer (or something else) to use that my query can use. I think I am thinking too much - cannot see thru the fog.
-Thanks in advance
Goes2bob
Bookmarks