Hi!

I'm making a new GUI app and I want it to show up with a especific resolution, so when in main.cpp I say w.show() it runs in 550x300. I've tried w.resize() but it just shows a little part of the screen instead of change its resolution so if I put an element like this:

Qt Code:
  1. QRect rec = QApplication::desktop()->screenGeometry();
  2. int h= rec.height()/8;
  3. int w= rec.width();
  4.  
  5. button->setMinimumSize(w,h); //this button will fit inside the screen with full width
  6. button->setMaximumSize(w,h);
To copy to clipboard, switch view to plain text mode 

with the resize I just see a part of the button and I should see it complety.

Thanks.