Quote Originally Posted by tuli View Post
i directly show the widget with show().
Please show the full code of the widget's constructor. My wild guess would be that you call setupUi() after the code you posted which overrides the widget's layout you set earlier.