Thursday, November 20th 2008, 3:22pm UTC

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

heidonglgc

Beginner

Posts: 2

Location: guangzhou, china

1

Friday, February 29th 2008, 7:21am

datbase support

Hi all,

I'm a novice to qt, a few days ago, I compiled qt4 on Windows XP, and successfully installed it. But at that time I didn't aware that, in default qt does not support database, and now when I connect to SQL Server 2000, the program encounters this problem : QSqlDatabase: QODBC driver not loaded. And I then use the following statement:
qDebug()<<QSqlDatabase::drivers();
to check what drivers does qt support, the program only prints "("QSQLITE")".

So, what can I do to make Qt supports SQL Server and other DBMS without recompile the source code?

This post has been edited 1 times, last edit by "heidonglgc" (Feb 29th 2008, 7:23am)

  • Go to the top of the page

Messenger

Intermediate

Posts: 426

Location: Lt

2

Friday, February 29th 2008, 8:18am

RE: datbase support

cd to [qt base]\src\plugins\sqldrivers\odbc read README, edit odbc.pro file (read qmake docs). qmake, ming32-make (or nmake).
sql driver plugin project is still only qmake project.
Fighting fire with fire.

This post has been edited 1 times, last edit by "Messenger" (Feb 29th 2008, 8:19am)

  • Go to the top of the page

heidonglgc

Beginner

Posts: 2

Location: guangzhou, china

3

Friday, February 29th 2008, 11:28am

RE: datbase support

thanks a lot!!!
  • Go to the top of the page

Rate this thread