[Qt-interest] QSqlQuery + multiple threads = crash

Sean Harmer sean.harmer at maps-technology.com
Wed Jun 22 15:05:51 CEST 2011


On Wednesday 22 June 2011 14:55:19 Emmanuel Bourgerie wrote:
> Would QSqlDatabase copyOfDb(*db) be enough ?

Just use QSqlDatabase::database( "db-name" ) in your worker thread to get 
another connection. Then be sure to use each connection only in the thread 
they were created in.

Cheers,

Sean




More information about the Qt-interest-old mailing list