
Originally Posted by
shamik
no i think i am not trying to access an embedded mysql database.
You think that or you verified that?
and i have tried alot but i am not able to write a code to print the list of drivers using QSqlDatabase::drivers()
actually i am able to store the list, this function returns but i dont know how to print that list.
for(int i=0;i<slist.size();i++) qDebug("%s", slist[i].ascii());
QStringList slist = QSqlDatabase::drivers();
for(int i=0;i<slist.size();i++) qDebug("%s", slist[i].ascii());
To copy to clipboard, switch view to plain text mode
i think QMYSQL3 might be the only driver since only this is listed under project->database settings->driver
It's not a matter of thinking, it's a matter of checking different possibilities to find out what the problem is.
What about answers to my other questions?
Bookmarks