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:
int h= rec.height()/8;
int w= rec.width();
button->setMinimumSize(w,h); //this button will fit inside the screen with full width
button->setMaximumSize(w,h);
QRect rec = QApplication::desktop()->screenGeometry();
int h= rec.height()/8;
int w= rec.width();
button->setMinimumSize(w,h); //this button will fit inside the screen with full width
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.
Bookmarks