Try adding this to your project file:
Try adding this to your project file:
SWEET!!!! Worked like a charm! No where in any documentation have I seen that -- where can I find such gems?
If you haven't already, you might want to read through the qmake manual.
As for this particular "gem" see here.
I'm only wanting to use native C++ to connect -- my employer/father-in-law isn't sold on Qt yet despite my arguments and he's wanting to be able to keep the processing separated as much as possible from the GUI...Makes senses, really -- hard to argue against that -- but in some ways it makes life harder for me...
The "QT += sql" was something that's I'd tried earlier and hadn't removed, but now I have...Thanks!
scott
I thought the SQLite library was included/embedded by default and didn't realized it needed added to the .pro file...Guess the documentation confused me a bit...
sorry to say but i am little irritated with your personal touch to every post (father in law.) Common its not funny to read as you think. Its an serious technical forum.
I am serious, trust me...I have not been a programmer for 22 years without being serious...You don't like my personal touch, don't read my questions...
scott_hollen (27th January 2011)
Thanks for that answer -- makes sense to me now (light bulb just popped on)...I hate having to post questions like these but time is not on my side! The amount of documentation is overwhelming and a bit too detailed in places...
scott
http://doc.qt.nokia.com/latest/qtsql.html
Edit: Misread the whole thing, sorry. Someone delete this post...
Last edited by hackerNovitiate; 27th January 2011 at 04:08.
Ehm, just to be sure. You want to use the native c++ interface to communicate with the database? Because then you don't need to include sql to your pro file. Otherwise if you only whnt use Qt to access the database see the detailed description to QSqlDatabase.
Bookmarks