I'm developing a PyQT application and want to use a SQL database. The engine doesn't matter that much. And I have a working MySQL installed in my system (I use it frequently), and also the SQLite3 DLL is present, by default in my system32 folder, and I have also put a copy beside qsqlite dll.
But when I call
db = QtSql.QSqlDatabase.addDatabase("QSQLITE")
or
db = QtSql.QSqlDatabase.addDatabase("QMYSQL")
All I get is:
QSqlDatabase: QSQLITE driver not loaded
QSqlDatabase: available drivers:
No Drivers at all. What should I do? Thanks in advance.