Display image in Qt to fit label size

前端 未结 7 1205
[愿得一人]
[愿得一人] 2021-02-01 02:53

I already tried several methods on displaying an image on a form, but none of them works how I would like.

I\'ve read many places that the easiest way is to create a la

7条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-01 03:32

    Does QLabel::setScaledContents(bool) help? There may also be some useful information in the image viewer example too.

提交回复
热议问题