本文介绍了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!

这篇关于QMYSQL驱动程序可用,但未加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-22 21:13