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.
2 parents 0fd6086 + 73600ee commit e214dbfCopy full SHA for e214dbf
.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,7 @@ 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
+ if qt_version == "6":
218
+ pixmap.detach()
219
+ return pixmap
0 commit comments