I don't think manually updating the layout that is the solution.
From what you say the layout gets updated anyway.
Maybe you can play a bit by blocking the signals for the layouts and enable them after you remove/hide the widgets.
One thing is certain: you won't get this behavior if the widgets that are removed are first or last in the dialog.
Bookmarks