My application has a rendering window, and next to it, a command widget (with a smaller size). When the user clicks on the maximize icon of the rendering window, it should not maximize to the full screen size, but only to the full screen size minus the width of the command widget.
Limiting the screen size with setMaximumWidth
does not work properly when the user hits the Maximize Icon. It still expands to full screen. Whereas, resizing the window when dragging the frame works as expected (size cannot be exceeded beyond maximumWidth
, which is max screen width minus widget width).
Is there a way to intercept the maximize event or to limit the max size and get it recognized when the user hits the maximize icon?
And it would be nice if I could keep the Maximize Icon of the window available, visible and working.
7