[Interest] QSqlQuery

arno arno at disconnect.de
Sun Jan 26 19:45:41 CET 2014


Hi Igor,

On 26-Jan-14 4:29 PM, Igor Mironchik wrote:
> I have some questions about database support in Qt 5.
> 
> First of all, is it safe to transfer a QSqlQuery instance from one
> thread to another to process him in another thread. I.e. I want to
> execute SELECT query on "DB" thread and return a QSqlQuery from that
> thread to the GUI thread, where I will navigate and show users the
> result of the query.

Hmm, why do you want to return the Query to the GUI thread? Update the
Model from the thread executing the Query and let QT take care of the GUI.

-- 
Gruß,
Arno.



More information about the Interest mailing list