ImageQt Module
The ImageQt
module contains support for creating PyQt5 or PySide2 QImageobjects from PIL images.
New in version 1.1.6.
- class
ImageQt.
ImageQt
(image) - Creates an
ImageQt
object from a PILImage
object. This class is a subclass ofQtGui.QImage, which means that you can pass the resulting objects directlyto PyQt5/PySide2 API functions and methods.
This operation is currently supported for mode 1, L, P, RGB, and RGBAimages. To handle other modes, you need to convert the image first.