I have an interface built with the Designer in which I have a layout that contains some widgets. I need to programatically get a pointer to this layout so that I can insert a QScrollArea, because it is not available (forgotten?) in the Designer.

When using the UIC tool I get both a name (even though the Designer does not write one in the .ui-output) and the convenient pointer needed, however I have switched to using the QUiLoader and this is where I run into problems, because it does not function in the same way the UIC tool does as you would expect; it will not provide pointer nor name.

Calling findChild( ) with the name that the UIC otherwise will construct gives a null pointer, as does calling layout() on one of the widgets placed inside my layout (I was told this is a normal behaviour though I can not understand why). How do I work around this?

Thanks