[PyQt] Deadlock when endResetModel() triggers QQuickImageProvider asynchronously

Milorad Pop-Tosic pop at hiri.com
Thu Mar 16 12:07:10 GMT 2017


Hi,


We're experiencing a deadlock when resetting a list model assigned to a QML ListView which in the delegate has an Image that calls QQuickImageProvider with asynchronous: true. The execution never reaches requestImage in  QImageProvider. If asynchronous is false, everything works fine.


I also tried subclassing QQuickAsyncImageProvider, but that behaves the same.


The same example in C++ seems to work.


The gist is here: https://gist.github.com/poptosic/b341511d3a0a6b7f09278ce5da7e20e7


Tested on PyQt5.8.1 on Windows.


Are we doing something wrong here?


Thanks,

Milorad

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20170316/c67327e0/attachment.html>


More information about the PyQt mailing list