Qt+数据库发布后无法打开数据库

在main.cpp中:

QApplication a(argc, argv);

QString strLibPath(QDir::toNativeSeparators(QApplication::applicationDirPath()) + QDir::separator() + "plugins");
a.addLibraryPath(strLibPath);

原文地址:https://www.cnblogs.com/judes/p/9400248.html