I've been experimenting with the designer to create basic layouts (QWidget forms).

Static versions of the code create a class and you yourself pass a QWidget to setupUi that it directly builds into (i.e. it does not create the toplevel holding widget). The passed in widget to be used as the toplevel can be subclassed to perform various things.

Now switching to dynamic loading you hit a problem. Although I can again pass my subclassed widget to QuiLoader::load it does not directly create it in that object like before. Instead it creates an intermediate object, which is returned by the call. As a result the subclassing does not work and things do not work as before.

Is there away of being able to dynamically load straight into the passed in QWidget without the creation of this other object?