I want to show widgets in an mdi area..and when i maximized it, it passes borders of this area and filling all the are of the main window...I mean it should just fill the mdiarea borders - area just but not ..
what can i do or what am i doing wrongly ?

Qt Code:
  1. QMdiSubWindow* subWindow = mdiArea->addSubWindow(view,Qt::SubWindow);
  2. subWindow->setOption(QMdiSubWindow::RubberBandResize, true);
  3. subWindow->setOption(QMdiSubWindow::SubWindowOption::AllowOutsideAreaHorizontally, false);
  4. subWindow->setOption(QMdiSubWindow::SubWindowOption::AllowOutsideAreaVertically, false);
  5. subWindow->setAttribute(Qt::WA_DeleteOnClose);
  6. subWindow->showMaximized();
To copy to clipboard, switch view to plain text mode