View Full Version : ResizeEvent frame vs window content

14th March 2006, 14:10
Could someone please tell me how to make my application so that when i resize the window it is only a frame until i let go? That way a PaintEvent isn't happening as i resize.

I'm using 3.3.2 for this specific project.

Thank you.

14th March 2006, 16:52
Can you give more explain what you want to do :)

14th March 2006, 17:34
In Windows XP for example there is a checkbox that for effects called: show window contents while dragging. If this is unchecked then a window will only display a frame while resizing, then fill in the window when you let go of the mouse. This is an OS feature not Qt. So I'm trying to find a way in Qt to get the application to simply not repaint the window until the mouse is let go on a resize.

mouseReleaseEvent only works inside the window, so that did'nt work.

I thought I could simply ignore the resizeEvent if the mouse button was down but I can't find a way to query the mouse to see if it is pressed. (after researching i don't think this is possible at this time, mice work on event triggers for buttons not queries)

So I'm not sure of a solution for this.

Any thoughts?