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:

Qt Code:
  1. documentWindow *child = createMdiChild();
  2. countries *cnt = new countries(this,database);
  3. child->setCentralWidget(cnt);
  4. child->show();
  5. child->setWindowTitle("Countries Maintenance");
To copy to clipboard, switch view to plain text mode 

Qt Code:
  1. documentWindow *MainWindow::createMdiChild()
  2. {
  3. documentWindow *child = new documentWindow;
  4. mdiArea->addSubWindow(child);
  5. return child;
  6. }
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!!!