Thanks jacek,

Drag a QWidget within the Qt Designer and promoted it to the custom class that i have made.


Now i have almost the same error:


QLayout::addChildLayout: layout "gridLayout" already has a parent
Segmentation fault

Another forum said something related to that

"If you want to create a sub-layout (i.e. you want to add it to another
layout), then you have to create it WITHOUT a parent. Just use the
constructor of QLayout without a parent.

Only add a parent (namely the top widget) for a top level layout (i.e. the
main layout of a widget).
"

How do i do that from within the Qt Designer?


In my case the gridLayout is the sub layout. and i have to instantiate that without a parent.

Regards
Sajjad