When I hide one widget in the program the layout is not updated/resized until I manually resize the window with a mouse.

Is there a way to update/refresh layout after I hide widgets inside a layout ?