PDA

View Full Version : how to resize a window when its moving



gegebelzebuth
25th February 2011, 09:27
Hello,

I'm encountering a little problem,
as you cans see in the title i want to resize a windowed qwidget when i'm moving it.

of course i tried this


void mywidget::moveEvent ( QMoveEvent * event )
{
resize(100,100);
}


but the window only resizes when i release the mouse

Does anybody can help me ?

thank you

nish
25th February 2011, 09:32
on windows, i think the events gets blocked when you are moving the window with title bar.

gegebelzebuth
25th February 2011, 10:11
i can get the event when i begin to move the window, but i can't resize the window during the move

nish
25th February 2011, 10:46
this the problem... you dont receive event paintEvents during a move in windows.