Just use the addWidget method. There is not need to create any layouts.
Qt Code:
  1. WidgetStack->addWidget(myWidget3, num);
To copy to clipboard, switch view to plain text mode