diff --git a/Tests/test_qt_image_qapplication.py b/Tests/test_qt_image_qapplication.py index 8d76eca3c..06bd27c00 100644 --- a/Tests/test_qt_image_qapplication.py +++ b/Tests/test_qt_image_qapplication.py @@ -8,13 +8,10 @@ if ImageQt.qt_is_installed: from PIL.ImageQt import QPixmap if ImageQt.qt_version == "side6": - from PySide6 import QtGui from PySide6.QtWidgets import QApplication, QHBoxLayout, QLabel, QWidget elif ImageQt.qt_version == "5": - from PyQt5 import QtGui from PyQt5.QtWidgets import QApplication, QHBoxLayout, QLabel, QWidget elif ImageQt.qt_version == "side2": - from PySide2 import QtGui from PySide2.QtWidgets import QApplication, QHBoxLayout, QLabel, QWidget class Example(QWidget): @@ -25,7 +22,7 @@ if ImageQt.qt_is_installed: qimage = ImageQt.ImageQt(img) - pixmap1 = QtGui.QPixmap.fromImage(qimage) + pixmap1 = ImageQt.QPixmap.fromImage(qimage) QHBoxLayout(self) # hbox