Qt-interest Archive, December 2007
Re: Initializing per-thread DB connection ?
Message 1 in thread
Hi,
> but this fails at run time, as QSqlDatabase can't find
> the database drivers due to the lack of a QCoreApplication
> object.
What sort of error do you get? Don't you have a QCoreApplication object in
your application? This doesn't sound like it's related to threads, but to the
lack of a QCoreApplication object.
--
[ signature omitted ]
Message 2 in thread
Dimitri wrote:
> Hi,
>
>> but this fails at run time, as QSqlDatabase can't find
>> the database drivers due to the lack of a QCoreApplication
>> object.
>
> What sort of error do you get? Don't you have a QCoreApplication object
> in your application? This doesn't sound like it's related to threads,
> but to the lack of a QCoreApplication object.
Thanks for the response. However, this problem has already
been resolved, and it was indeed due to the lack of a
QCoreApplication object.
--
[ signature omitted ]