Hi

Here is the code which creates the children.

Qt Code:
  1. bool MainWindow::LoadRecentFiles()
  2. {
  3. if(!recentFiles.empty())
  4. {
  5. for (int x = 0; x < (recentFiles.size()); ++x)
  6. {
  7. ceguSubWidget *child = new ceguSubWidget();
  8. mdiArea->addSubWindow(child);
  9. if (child->load(recentFiles.at(x)))
  10. child->show();
  11. else
  12. child->close();
  13. }
  14. return true;
  15. }
  16. else
  17. return false;
  18. }
To copy to clipboard, switch view to plain text mode 

Thanks