QPSQL driver not loaded Qt

后端 未结 4 2016
[愿得一人]
[愿得一人] 2020-11-30 14:10

I have some trouble when I want to add a database.

    _dataBase = QSqlDatabase::addDatabase(\"QPSQL\");

After calling this method I have

4条回答
  •  执念已碎
    2020-11-30 14:39

    Add the system variable QT_DEBUG_PLUGINS=1 if you want to get full information of why the QPSQL driver has not been loaded.

    Probably you will discover that Qt is not able to find it. Copy and paste the output here to know what exactly happens.

提交回复
热议问题