How to scale a QPixmap preserving aspect and centering the image?

前端 未结 0 539
栀梦
栀梦 2020-12-01 23:41

I want to use an image (svg file) as background in an QMdiArea. I load the image as QPixmap and scale it in the resizeEvent method to the size of the QMdiArea using



        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题