Why adjustSize doesn't work?
Unsolved
General and Desktop
-
Hi,
I have simple app. In MainWindow constructor I have:
_someWidget = new someWidgetClass(this); _someWidget ->setFixedSize(700,700); _someWidget ->move(50,50); wid = new QWidget(this); wid->move(800,800); wid->setFixedSize(100,100); centralWidget()->adjustSize(); adjustSize();
I would like to change MainWindow size to:
So I would like to resize MainWindow like that, his right bottom corner should be the right bottom corner the green widget too ( no matters margins ). When I try
adjustSize()
I can't achieve that. -
Hi,
What result do you get ?
-
I don't see why adjustSize() should do anything - there is no layout on it so ... (as already told you on stackoverflow)