-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
toqpixmap() doesn't work with PyQt5 #7994
Comments
I uploaded the examples and the image: |
What does this say? from PIL import ImageQt
print(ImageQt.qt_is_installed) |
This prints True |
Ah, #7059 would be the reason. |
Oh, I didn't expect that. Thanks for the quick help! |
Just to explicitly state here - Qt5 support was removed in Pillow 10.0.0. See https://pillow.readthedocs.io/en/stable/deprecations.html#pyqt5-and-pyside2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What did you do?
I tried using
.toqpixmap()
on a Pillow Image to convert it to a QPixmap in a PyQt5 applicationWhat did you expect to happen?
I expected the image to load and show but the program just crashes.
What actually happened?
The program instantly crashes without the debugger even showing anything:
Process finished with exit code -1073740791 (0xC0000409)
What are your OS, Python and Pillow versions?
features.pilinfo(supported_formats=False)
:Not working with PyQt5:
Same code with PyQt6 works:
I found this workaround to be working for PyQt5, but honestly I'd rather figure out why
toqpixmap()
isn't working:The text was updated successfully, but these errors were encountered: