Hey everyone. I just updated one of my programs from using QWorkspace to QMdiArea, and I am having a couple of issues. When I call a form inside the MDIArea, the window comes up, but it is just small bit of the title bar, with the Min/Max/Close buttons. I can then resize the window to what it should be, but that is a pain. I tried doing setFixedSize, but that did not work, it is still just the small title bar.

Here is how I am calling the form:
Qt Code:
  1. void nnDBSMainWindow::formView()
  2. {
  3. nnDBSPieceViewForm *pieceViewForm = new nnDBSPieceViewForm;
  4. MDIArea->addSubWindow(pieceViewForm);
  5. pieceViewForm->setAttribute(Qt::WA_DeleteOnClose);
  6. pieceViewForm->show();
  7. }
To copy to clipboard, switch view to plain text mode 

Also, now that I have changed it to QMdiArea, a Close button I created on the form just wipes the form away, and keeps the window open. I have to click the X close button in the upper right corner.

Can anyone help me with this? I really don't want to go back to QWorkspace, since it is obsolete, and will be deprecated in the next version of Qt, according to the docs.

Thanks in advance!