Skip to content

Conversation

@radarhere
Copy link
Member

elif im.mode == "I;16" and hasattr(qt_format, "Format_Grayscale16"): # Qt 5.13+

qt_format = ImageQt.QImage.Format if ImageQt.qt_version == "6" else ImageQt.QImage
if hasattr(qt_format, "Format_Grayscale16"): # Qt 5.13+
modes.append("I;16")

Support for Qt 5 was removed in Pillow 10.0.0, so this code can be simplified.

@radarhere radarhere added the Qt Qt for Python, PyQt, PySide label Jun 21, 2024
@hugovk hugovk added the Cleanup label Jun 23, 2024
@hugovk hugovk merged commit 0201707 into python-pillow:main Jun 23, 2024
@radarhere radarhere deleted the qt6 branch June 23, 2024 11:29
mdickinson added a commit to enthought/pyface that referenced this pull request May 15, 2025
mdickinson added a commit to enthought/pyface that referenced this pull request May 15, 2025
PIL removed support for Qt 5 in python-pillow/Pillow#8159. This PR skips the `TestPILImage` tests on Qt 5. Related: #1255
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Cleanup Qt Qt for Python, PyQt, PySide

2 participants