PDA

View Full Version : QWidget with fixed width height ratio



Lodorot
26th May 2009, 09:32
Hi,

I have implemented my own widget plugin for Qt Designer. When resizing the widget in Qt Designer I want the width height ratio to be fix (1:1). I have reimplementet the resizeEvent doing a resize to 1:1. But I'm not really satisfied with this solution.

Is there a more appropriate way to keep the ratio?

Thank you in advance

Markus

talk2amulya
26th May 2009, 09:49
try using heightForWidth form of functions..should resolve your problem