PDA

View Full Version : After calling showMaximized() can no longer resize application.. Why?



davidm71
25th April 2017, 04:31
Hi,

After I call showMaximized() Slot my app maximizes but I lose the ability to resize it though I can move it around, minimize it, but never restore it to full screen after the first time. Not only that I lose the ability to resize from the corner right bottom part of the edge of the app. I tried statusBar()->setSizeGripEnabled(true) but that only makes the app a little shorter and still no resize. Is there a way to method that undos the showmaximized() fuction? I've even played around with setwindowstate (qt:windowfullscreen or windowmaximized) but its the same thing..

Thanks

Added after 13 minutes:

Found Qt::WindowNoState does the trick..