[Qt-interest] Error QSQLITE driver not loaded, but the driver is there and it’s called after QApplication!
Samuel Gaist
samuel.gaist at edeltech.ch
Tue Feb 7 13:03:36 CET 2012
On 7 févr. 2012, at 12:51, Daniel França wrote:
> First I've to say that it was working after some problems I got with Qt versions and then I had to compile Qt4.8 from sources.
>
> Now when I ran my application I get this error:
> QSqlDatabase: QSQLITE driver not loaded
> QSqlDatabase: available drivers:
>
> but the sqlite driver is there: /usr/local/Trolltech/Qt-4.8.0/plugins/sqldrivers/
> libqsqlite.dylib libqsqlite_debug.dylib
>
> Then I put this line of code:
> QApplication::addLibraryPath( "/usr/local/Trolltech/Qt-4.8.0/plugins/" );
>
> And it's working... but I want to know a better way to solve this problem, and I don't think my solution will gonna work in others computers.
>
> I'm running on a OSX 10.6
> GCC 4.2
> Qt 4.8 compiled with dbus disabled and as framework.
>
> PS: The call to SQLITE is after QApplication constructor
>
> Best Regards,
> Daniel França
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list