I usually do it this way. see the attached zip. i design the tab layout in layout designer like you. but I create the template class in code instead of layout designer. this way i get to call the CtrlLayout(*this) in its contractor. and add the tabs to the window using this<<tab1<<tab2; and the rest all same like you. and it just works.