Hi,
I have a midi application that create child windows holding a widget
The problem is that the child windows is always created with the minimum size!

When it should be something like:

I am loading the child with:
documentWindow *child = createMdiChild();
countries *cnt = new countries(this,database);
child->setCentralWidget(cnt);
child->show();
child->setWindowTitle("Countries Maintenance");
documentWindow *child = createMdiChild();
countries *cnt = new countries(this,database);
child->setCentralWidget(cnt);
child->show();
child->setWindowTitle("Countries Maintenance");
To copy to clipboard, switch view to plain text mode
documentWindow *MainWindow::createMdiChild()
{
documentWindow *child = new documentWindow;
mdiArea->addSubWindow(child);
return child;
}
documentWindow *MainWindow::createMdiChild()
{
documentWindow *child = new documentWindow;
mdiArea->addSubWindow(child);
return child;
}
To copy to clipboard, switch view to plain text mode
The centralWidget cnt has the size w=508 h=250. Its size policy is fixed.
Any idea how to correct this so the size of the child matched the size of the centralWidget?
Thanks!!!
Bookmarks