In order to comunicate with a database in Qt you need the propper driver, if you want to know what drivers are available for you, you can exec this:
qDebug()<< "Availables drivers are: \n"+QSqlDatabase::drivers().join(" \n ");
Of course you need qDebug, QSqlDatabase and QtSQL in your headers.
No hay comentarios:
Publicar un comentario