How to implement zooming image better?
问题 I have the following code: from PyQt5.QtWidgets import QWidget, QHBoxLayout, QVBoxLayout, QPushButton, QGroupBox, QLabel from PyQt5.QtGui import QPixmap from PyQt5.QtGui import * from PyQt5.QtWidgets import * from PyQt5.QtCore import Qt import sys class Window(QWidget): def __init__(self): super().__init__() self.imgLabel = QLabel(self) pixmap = QPixmap("feedreader.jpg") self.imgLabel.setPixmap(pixmap) self.imgLabel.setAlignment(Qt.AlignCenter | Qt.AlignCenter) self.imgLabel.setSizePolicy