show() only schedules the widget for display. It does not display it. You need to process events first. Either way, if it breaks then maybe something is wrong with the document layout engine.