Solved Maximize window
-
I do not know what I thouched but a mainwindow do not acept a maximize. Where is the option in Qt creator to disable this?
regards.
-
@Julian Do you mean MainWindow in your app or QtCreator window?
-
Hi @Julian
You may have changed SizePolicy from prefered to minimum ? or to fixed?
QSizePolicy::Minimum
-
here is the image. It's on minimum but it can not maximize
-
Yes indeed you changed size policy to minumum
I think that this is the problem
Just change again Horizontal policy and Vertical policy to prefered
and maximize will work again
-
I changed that but it still do not work. There is another item to change?
-
@Julian said in Maximize window:
I changed that but it still do not work. There is another item to change?
Try to rebuild
-
Nothing happend. I know there is another option but I cant remember which is.
-
@Julian said in Maximize window:
Nothing happend. I know there is another option but I cant remember which is.
I am not seeing any other option that could prevent maximize
Have changed your widget only in qt designer?
-
Can you share the content of your .ui file?
Does your widget refuse only horizontal maximize? or vertical and horizontal maximize?
The cause of refusing horiztonal maximize is that
-the width of the widget is equal to 1000 and maximum size that the widget could accept is 1000 too so maximize on width will never work , cause the maximum is already reached !