PDA

View Full Version : QSqlDataBase file not found



sdastagirmca
4th February 2009, 13:22
hi,

I am QSqlDataBase for Connecting the Sqlite.It shows error

1."Cannot open include file QSqlDatabase".
2."Cannot open include file QtSql".

I'm using VS2005.

please try to help regarding this issue.

caduel
4th February 2009, 14:34
add in your .pro file:

QT += sql

sdastagirmca
5th February 2009, 05:06
hi caduel,


i'm just copying the code from qt examples cachedtable to my new project .it showing the errror as

1.cannot include QSqlDataBase,QtSql.

if i add this QT+=sql in .pro .

while building the project it get vanish.


I'm using Visual Studio 2005 .


please help me regarding this issue.


regards

S.Mohammad Hussain,

caduel
5th February 2009, 07:53
Sorry, I don't use VisualStudio.
You need to find where to set that option in your project configuration.