[PyQt] QtSql and releasing GIL

Phil Thompson phil at riverbankcomputing.com
Fri Mar 21 15:13:49 GMT 2014


On 21-03-2014 3:04 pm, Arve Knudsen wrote:
> Hello
>
> I experienced today that the GUI got locked up while querying SQL, 
> via
> QtSql.QSqlQuery, in a separate QThread. Does QtSql release the GIL?
> This problem only persisted for a while, perhaps due to intermittent
> database slowness, so I cant reproduce right now.
>
> Thanks,
> Arve

Depends which method you mean and whether its PyQt4 or PyQt5.

Phil


More information about the PyQt mailing list