[Qt-interest] Strange include problem

Filipe Maia filipe at xray.bmc.uu.se
Wed Nov 25 12:12:14 CET 2009


I'm guessing you have to add:

QT += sql

to your .pro file.


On Wed, Nov 25, 2009 at 12:03, Neville Dastur <qt at dastur.me.uk> wrote:
> 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
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>



More information about the Qt-interest-old mailing list