QSQLITE driver not loaded, The drivers need to be placed under 'sqldrivers', not in the same directory as the executable (they are loaded on runtime, and Qt looks for them QSqlDatabase: QMYSQL driver not loaded QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3 QODBC QODBC3 QPSQL QPSQL7 C: Users Kambiz Documents Qt build-untitled16-Desktop. I want to load qt5 psql driver in windows 7. I've load the library as this way: qDebug QSqlDatabase::addDatabase(driverName,'A connection to postgres'); And the output shows. Hello, After installing Qt 5.3.0 under Windows 7 x64 I experienced a strange issue (Qt 5.2.1 was working fine). I always get this error message: codeQSqlDatabase: QPSQL driver not loaded. Note: Some drivers, such as the QPSQL driver, may may require you to pass tablename in lower case if the table was not quoted when created. See the Qt SQL driver documentation for more information. static void QSqlDatabase:: registerSqlDriver (const QString & name, QSqlDriverCreatorBase. creator ). QSqlDatabase: QPSQL driver not loaded QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3 QODBC QODBC3 QPSQL QPSQL7 Could not create database object While navigating the results in forward-only mode, the handle of QSqlResult may change.
Hello,
After installing Qt 5.3.0 under Windows 7 x64 I experienced a strange issue (Qt 5.2.1 was working fine).
I always get this error message:
[code]QSqlDatabase: QPSQL driver not loaded
QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3 QODBC QODBC3 QPSQL QPSQL7
Unable to connect![/code]
Whether I run my apps from Qt Creator or even deployed them as usual! The following list shows you that all the deployment files already exists while the app unable to find SQL plugin!... May I get a help from you?
[code]D:SnippetsC++ Qtbuild-SQLConnection-Desktop_Qt_5_3_0_MinGW_32bit-Debugdebug>dir /w /s
Volume in drive D is WORK
Volume Serial Number is 4585-4EFE
Directory of D:SnippetsC++ Qtbuild-SQLConnection-Desktop_Qt_5_3_0_MinGW_32bit-Debugdebug
[.] [..]
Enginio.dll Enginiod.dll
gpsvc.dll icudt52.dll
icuin52.dll icuuc52.dll
IEShims.dll libgcc_s_dw2-1.dll
libstdc++-6.dll libwinpthread-1.dll
main.o [platforms]
Qt5Bluetooth.dll Qt5Bluetoothd.dll
Qt5CLucene.dll Qt5CLucened.dll
Qt5Concurrent.dll Qt5Concurrentd.dll
Qt5Core.dll Qt5Cored.dll
Qt5Declarative.dll Qt5Declaratived.dll
Qt5Designer.dll Qt5DesignerComponents.dll
Qt5DesignerComponentsd.dll Qt5Designerd.dll
Qt5Gui.dll Qt5Guid.dll
Qt5Help.dll Qt5Helpd.dll
Qt5Multimedia.dll Qt5Multimediad.dll
Qt5MultimediaQuick_p.dll Qt5MultimediaQuick_pd.dll
Qt5MultimediaWidgets.dll Qt5MultimediaWidgetsd.dll
Qt5Network.dll Qt5Networkd.dll
Qt5Nfc.dll Qt5Nfcd.dll
Qt5OpenGL.dll Qt5OpenGLd.dll
Qt5Positioning.dll Qt5Positioningd.dll
Qt5PrintSupport.dll Qt5PrintSupportd.dll
Qt5Qml.dll Qt5Qmld.dll
Qt5Quick.dll Qt5Quickd.dll
Qt5QuickParticles.dll Qt5QuickParticlesd.dll
Qt5QuickTest.dll Qt5QuickTestd.dll
Qt5QuickWidgets.dll Qt5QuickWidgetsd.dll
Qt5Script.dll Qt5Scriptd.dll
Qt5ScriptTools.dll Qt5ScriptToolsd.dll
Qt5Sensors.dll Qt5Sensorsd.dll
Qt5SerialPort.dll Qt5SerialPortd.dll
Qt5Sql.dll Qt5Sqld.dll
Qt5Svg.dll Qt5Svgd.dll
Qt5Test.dll Qt5Testd.dll
Qt5WebKit.dll Qt5WebKitd.dll
Qt5WebKitWidgets.dll Qt5WebKitWidgetsd.dll
Qt5WebSockets.dll Qt5WebSocketsd.dll
Qt5Widgets.dll Qt5Widgetsd.dll
Qt5WinExtras.dll Qt5WinExtrasd.dll
Qt5Xml.dll Qt5Xmld.dll
Qt5XmlPatterns.dll Qt5XmlPatternsd.dll
SQLConnection.exe [sqldrivers]
sysntfy.dll
85 File(s) 754,574 bytes
Directory of D:SnippetsC++ Qtbuild-SQLConnection-Desktop_Qt_5_3_0_MinGW_32bit-Debugdebugplatforms
[.] [..] qminimal.dll qminimald.dll
qoffscreen.dll qoffscreend.dll qwindows.dll qwindowsd.dll
6 File(s) 22,739,714 bytes
Directory of D:SnippetsC++ Qtbuild-SQLConnection-Desktop_Qt_5_3_0_MinGW_32bit-Debugdebugsqldrivers
[.] [..] qsqlite.dll qsqlited.dll
qsqlmysql.dll qsqlmysqld.dll qsqlodbc.dll qsqlodbcd.dll
qsqlpsql.dll qsqlpsqld.dll
8 File(s) 6,147,884 bytes
D:SnippetsC++ Qtbuild-SQLConnection-Desktop_Qt_5_3_0_MinGW_32bit-Debugdebug>[/code]
PS
I copied SYSNTFY.DLL, IESHIMS.DLL and GPSVC.DLL because Dependency Walker mentioned them as dependent for my app.
Did you compile the release and debug versions of the plugin? The output of the dependency walker looks like you work with the debug version. You should have qsqlpsql4.dll and qsqlpsqld4.dll in the %QTDIR%pluginssqldrivers directory. You can check the plugin path that is used in your program with: QString QLibraryInfo::location ( QLibraryInfo::PluginsPath );
i compiled both qsqlpsql4.dll/qsqlpsqld4.dll and plugin path is correct(%QTDIR%plugins). Thank for the answer. – bmeric29 дек. 102010-12-29 20:02:45
The link you mentioned above also talks about the need to have (%pgsql)bin in your path. – hmuelner29 дек. 102010-12-29 20:08:33
I compiled both release and debug versions, and the plugin path used is correct, yet I am still having the same issue. Any other ideas? – Jordan10 июн. 112011-06-10 12:37:31
Qsqldatabase Qpsql Driver Not Loaded Ubuntu
Try to use the debug version with VS2008 and have a look at the output window, where all loaded dlls are listed with the full path. Are the paths correct? – hmuelner11 июн. 112011-06-11 16:45:27