unice
unice

Reputation: 2842

how to adjust/stretch image size on form resize pyqt4 python

i have a qlabel with an image, it is inside a QGridLayout. when the form re-sizes the QGridlayout automatically resize but the qlabel with image does not stretch.

Upvotes: 0

Views: 1108

Answers (1)

abbot
abbot

Reputation: 27890

Have you tried setting scaledContents property to True?

Upvotes: 1

Related Questions