what do i need library when release application with QODBC
mark1215 last edited by
Win7+Qt5.6+SQL Server 2005
db = QSqlDatabase::addDatabase("QODBC");
when i debug/release it with Qt Creator, it's ok.
but when i realse it, and run with Qt's dll, some message on console
Warning: QT_DEVICE_PIXEL_RATIO is deprecated. Instead use:
QT_AUTO_SCREEN_SCALE_FACTOR to enable platform plugin controlled per-screen factors.
QT_SCREEN_SCALE_FACTORS to set per-screen factors.
QT_SCALE_FACTOR to set the application global scale factor.
QSqlDatabase: QODBC driver not loaded
QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3 QPSQL QPSQL7
QSqlQuery::exec: database not open
hskoglund last edited by
Hi, Qt 5.6 didn't have the ODBC plugin file (qsqlodbc.dll) that's probably why the ODBC driver doesn't load for you.
You could try upgrading to Qt 5.6.1 or Qt 5.7, in those releases qsqlodbc.dll is correctly included.