[Qt-interest] Strange include problem
Constantin Makshin
cmakshin at gmail.com
Wed Nov 25 12:14:51 CET 2009
Do you have "sql" listed in your QT project file variable?
On Wed, 25 Nov 2009 14:03:12 +0300, 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
--
Constantin Makshin
More information about the Qt-interest-old
mailing list