Hi,
I want to resize a main windows and here are my result :
static GLObjectWindow* w; // Window of my application
DONT WORKS !!!
w->setFixedSize(531, 663);
DONT WORKS !!!
setSizeIncrement(1.25,1);
WORKS --> COOL
w->setMaximumSize( 531, 663 );
DONT WORKS --> I can reduce the window the size that I want !!!
w->setMinimumSize(531, 663);
// here's my function to resize, the prob is that when I do the resize( newSize ), it's
// logical that itrecall the function resizeEvent, that make a loop.
void GLTexobj::resizeEvent ( QResizeEvent *e){
if (Resizable) {
QSize newSize = e->size();
newSize.setHeight((e->size()).height());
newSize.setWidth((e->size()).height()/1.25);
w->resize( newSize );
}
}
Thanks for your help