PDA

View Full Version : QSqlDatabase: QODBC driver not loaded



gutiory
14th April 2010, 10:05
Hello everyone.

I have one app developed in qt 4.6.2 which connects with MS Access.
I want to distrubute the app to a computer without a Qt installation.
I've use Dependency Walker to know what dlls I must add with the .exe. These are:

mingwm10.dll
libgcc_s_dw2-1.dll
qtcore4.dll
qtsql4.dll
qtgui4.dll


And when I execute the application, I get the next error:

QSqlDatabase: QODBC driver not loaded.

But when I'm executing the app via QTCreator, everything works great.

I'm doing something wrong, but I've no idea of what could be my mistake.
Thanks a lot in advance and regards.

gutiory
14th April 2010, 10:24
Hello again.
I've found the solution in the forum right here http://www.qtcentre.org/threads/21133-Running-the-*.exe?highlight=qodbc.

Sorry for the inconvenieces.