diff --git a/PIL/ImageQt.py b/PIL/ImageQt.py index d7c91df13..fd662c894 100644 --- a/PIL/ImageQt.py +++ b/PIL/ImageQt.py @@ -22,11 +22,11 @@ import sys if 'PyQt4.QtGui' not in sys.modules: try: - from PyQt5.QtGui import QImage, qRgb + from PyQt5.QtGui import QImage, qRgba except: - from PyQt4.QtGui import QImage, qRgb + from PyQt4.QtGui import QImage, qRgba else: #PyQt4 is used - from PyQt4.QtGui import QImage, qRgb + from PyQt4.QtGui import QImage, qRgba ## # (Internal) Turns an RGB color into a Qt compatible color integer.