[Qt-interest] resizeEvent get's only called _after_ resize

chris_honschu at gmx.de chris_honschu at gmx.de
Sun Jul 19 01:04:45 CEST 2009


Hi,

 I want a window that can only be resized with a ratio of 4:3. I 
achieved this by using the resizeEvent.

 My problem now is that the window can be resized to any other 
size until the user releases the mousebutton (when changing the 
size).

So I think resizeEvent works correct, because it only gets 
triggered when the resizeEvent is done/over.

What I need is a function that gives me access to the 
resize-process itself. So that the window can always stay in 4:3 
ratio and won't be snapped back after the resize event.

I also tried to set the maximum and minimum allowed size of a 
window in the resizeEvent to program around the problem, but 
this really slows down the process.

Maybe I have to look at the VLC Player, it should have 
implemented something to keep aspect. mplayer for example is 
doing fine resize with keeping aspect.

maybe you can help me,
 thanks and bye



More information about the Qt-interest-old mailing list