ImageQt Module

The ImageQt module contains support for creating PyQt4 or PyQt5 QImage objectsfrom PIL images.

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 PyQt4/5 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.