Brings up the image nicely on the label
Solved
General and Desktop
-
wrote on 27 Feb 2023, 12:08 last edited by
-
How do I change the input image to better like the one on the right?
Thank youwrote on 27 Feb 2023, 16:03 last edited by -
wrote on 27 Feb 2023, 17:18 last edited by
@Pl45m4 Thank you.
Documentation for Python : https://doc.qt.io/qtforpython-5/PySide2/QtGui/QPixmap.htmlExample of code :
I give this because of the minimum examples on the internetfrom PyQt6.QtCore import Qt ... self.labelCropFace.setPixmap(pixmap3.scaled(self.labelCropFace.size(), Qt.AspectRatioMode.KeepAspectRatio))
For other people who need it, hopefully it helps too
-
3/3