Custom widget plugins for Qt Designer have an interface function, isContainer(), that tells Designer the widget can contain others. Designer creates and manages layouts for widgets that are containers. Perhaps you should look at how it keeps track of those.
Bookmarks