You should subclass your designer created widget (as it becomes a regular cpp class when uic is done with it) and implement all the code there. KDevelop even has a special button for it. Open your Qmake manager, right click a form you want to subclass and choose Subclassing wizard from the popup menu.