QMYSQL 驱动可用但未加载
如何在 Qt 中加载 qmysql
驱动程序?我有以下代码产生这些结果:
How do I load qmysql
driver in Qt? I have the following code that produces these results:
("QSQLITE", "QMYSQL", "QMYSQL3")
QSqlDatabase: QMYSQL driver not loaded
QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3
关于如何加载它有什么建议吗?
Any suggestions on how to load it?
推荐答案
好的,只需将 sqldrivers
文件夹复制到我的调试文件夹,它就起作用了!
ok it worked just by copying the sqldrivers
folder to my debug folder and it worked!
相关文章