0

I want to put a pixmap into a label through PyQt5, but when displaying other elements in the layout the pixmap label changes size without keeping the aspect ratio. I searched through the docs and the properties of the label, but i cant see anything that helps with aspect ratios. Is there any simple way to get this, or is there perhaps a better widget to display a static image than using a pixmap in a label?

EDIT: BTW, i already tried setting self.Label_BCU_Logo.setScaledContents(True) for the label, which did not help

Flying Thunder
  • 673
  • 7
  • 23
  • FYI: [SO: **Qt - How to create Image that scale with window, and keeps aspect ratio?**](https://stackoverflow.com/a/42852010/7478597), [SO: **Layout design issue with Qt application**](https://stackoverflow.com/a/57787371/7478597). – Scheff's Cat May 20 '20 at 06:31

0 Answers0