Thanks for the great write-up. I’m attempting to use this example to stream a live video feed (numpy
array → QImage
→ QPixmap
→ QLabel
inside a QScrollArea
) but I am frequently encountering crashes when the label is resized too quickly, or the scroll area is scrolled too quickly. I have seen people mention that it could be a problem with QImage
memory buffer getting cleared before the QPixmap
can update the QPainter
event, but I tried storing a .copy()
of the QImage
and that didn’t work.
Is this something you think can be fixed, or does it sound like a fundamental issue with the way threads work with Python/PyQt5?