PDA

View Full Version : Hello friends, I have a problem in QT


praveen
2nd April 2008, 08:40
Hello friends, I'm new to this forum. :)

I'm working on C++ with QT tool.
I'm using ODBC driver manager to connect to DB.
The problem is I'm getting following message at runtime,

QSqlDatabase: QODBC3 driver not loaded
QSqlDatabase: availbale drivers:

I'm using using QT4.3.2 ver.
I don't know what has gone wrong.

Any idea what may be wrong? :confused:

jpn
2nd April 2008, 08:47
Hi, you have to build the ODBC plugin. For more details: QODBC for Open Database Connectivity (ODBC) (http://doc.trolltech.com/4.3/sql-driver.html#qodbc-for-open-database-connectivity-odbc) (read through till "How to Build the ODBC Plugin on Windows").

praveen
2nd April 2008, 08:50
Hi, you have to build the ODBC plugin. For more details: QODBC for Open Database Connectivity (ODBC) (http://doc.trolltech.com/4.3/sql-driver.html#qodbc-for-open-database-connectivity-odbc) (read through till "How to Build the ODBC Plugin on Windows").
Thanks jpn.
I'll try your idea. :)

praveen
2nd April 2008, 09:12
Hi, you have to build the ODBC plugin. For more details: QODBC for Open Database Connectivity (ODBC) (http://doc.trolltech.com/4.3/sql-driver.html#qodbc-for-open-database-connectivity-odbc) (read through till "How to Build the ODBC Plugin on Windows").
Hi jpn,

I got an odbc.pro file after following the mentioned process.

Actually I'm writing an C interface for a C++ lib, which uses QT and QODBC facilities.
I copied that odbc.pro to the dir where i'm testing my C interface.

This is didn't solve my problem.
Please can relate your solution to current situation and check what is the problem ?

Actually I'm a newbie to QT.
Thanks in advance.

jpn
2nd April 2008, 09:36
Huh? The instructions say nothing about copying odbc.pro to anywhere... odbc.pro is the project file of the ODBC plugin. Just generate a makefile and build the ODBC plugin project like instructed.