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 0f93721Copy full SHA for 0f93721
.github/workflows/test-windows.yml
@@ -80,6 +80,12 @@ jobs:
80
pytest-cov
81
pytest-timeout
82
83
+ - name: Install CPython dependencies
84
+ if: "!contains(matrix.python-version, 'pypy')"
85
+ run: >
86
+ python3 -m pip install
87
+ PyQt6
88
+
89
- name: Install dependencies
90
id: install
91
run: |
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