In QWidget (documentation) it talks about building composite widgets and references a page that's supposed to have a tutorial on how to do it; though i couldn't find it.

Could someone point me in the direction of a thread or tutorial on (or explain) how to:
-Turn a qwidget into a container (I believe it is by default)
-Have it "contain" another widget

Again, I search the reference it gave, but it didn't seem to contain anything on containers/composite widgets. To clarify, I know how to do it in designer; I need to figure out how to do it.


I looked at the ui_myclass.h files to get an idea; it seems that it's enough to just say this during initialization?:
Qt Code:
  1. myContainerClass foo = new myContainterClass[B](ContainedClassName)[/B];
To copy to clipboard, switch view to plain text mode