This is a basic question,

but I am doing it now only and I can't find any hints in the qt manual

I am working with Qt designer. I have created a mainwindow. Now I have a custom widget that I would like to add in the mainwindow.cpp, but I can't find anything that tells me how to do this.

How is it possible please help me..