[Qt-interest] Strange include problem

Neville Dastur qt at dastur.me.uk
Wed Nov 25 12:03:12 CET 2009


I have come across a strange #include problem.

I am trying to use my own database driver. As per the docs 
(http://doc.trolltech.com/4.5/qsqldatabase.html#addDatabase) I have 
included the relevant plugin file.

First problem is that the #include <QSqlDatabase> directive resulted in 
a file not found. Fine so I changed to <QSql/QSqlDatabase> but now the 
included file contains a load of files that can't be found. Obviously 
this is a include path issue.

I am using Qt creator and can't find a way to get the relevant path 
searched other than listing them all in .pro file. My question really is 
that shouldn't this be taken care of by creator and if not is there a 
way of adding to the INCLUDEPATH option using a the currently selected 
Qt SDK?

Thanks



More information about the Qt-interest-old mailing list