Hi
Here is the code which creates the children.
bool MainWindow::LoadRecentFiles()
{
if(!recentFiles.empty())
{
for (int x = 0; x < (recentFiles.size()); ++x)
{
ceguSubWidget *child = new ceguSubWidget();
mdiArea->addSubWindow(child);
if (child->load(recentFiles.at(x)))
child->show();
else
child->close();
}
return true;
}
else
return false;
}
bool MainWindow::LoadRecentFiles()
{
if(!recentFiles.empty())
{
for (int x = 0; x < (recentFiles.size()); ++x)
{
ceguSubWidget *child = new ceguSubWidget();
mdiArea->addSubWindow(child);
if (child->load(recentFiles.at(x)))
child->show();
else
child->close();
}
return true;
}
else
return false;
}
To copy to clipboard, switch view to plain text mode
Thanks
Bookmarks