Are ODBC correctly configured? What is the Error Message?
Are ODBC correctly configured? What is the Error Message?
A camel can go 14 days without drink,
I can't!!!
As written your code won't even compile. At line 22: you try to treat a pointer to an object as an actual object. At line 23: QSqlDatabase::addDatabase() is a static method and you need to use it correctly (as in the examples in the documentation or this site). Try the SQL Widget Mapper Example.
Bookmarks