My problem is when I place my own widget in the designer
so the generated ui file will contain

MyOwnWidet *a = new MyOwnWidget();

while I want the all of my gui component will come from the factory
and will not be initiated that way.

thanx