CodePudding user response:
You mean the scaling of the picture?CodePudding user response:
QPixmap pixmap (" :/newPrefix/UI/login. The PNG "); Pixmap=pixmap. Scaled (label - & gt; The size ());//add the label - & gt; SetPixmap (pixmap);CodePudding user response:
The size of the icon to adapt himself to the QLabel controls in Python is this command QLabel setScaledContents (True)