I do not have the explanation for the behaviour you are experiencing, but I have a suggestion. Apparently exactly one widget among the 10 must be visible at any given time. Instead of showing and hiding the widgets manually, I suggest you put them all in a QStackedLayout.