We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a4b3e0 commit 6da6ac7Copy full SHA for 6da6ac7
src/PIL/ImageQt.py
@@ -213,4 +213,6 @@ def toqimage(im: Image.Image | str | QByteArray) -> ImageQt:
213
214
def toqpixmap(im: Image.Image | str | QByteArray) -> QPixmap:
215
qimage = toqimage(im)
216
- return getattr(QPixmap, "fromImage")(qimage)
+ pixmap = getattr(QPixmap, "fromImage")(qimage)
217
+ pixmap.detach()
218
+ return pixmap
0 commit comments