Hello,

i have in my centralWidget a QMdiArea. When i open many files (30) i got in
Window mode many windows, thats ok.
When i now switch from "cascade" to "tile" the mainwindow resizes and is
much bigger than my screen.

How can i prevent a resize of the mainwindow if i activate "tile" view of
many windows in a mdiAdea?

i tried this, but didn't work:
Qt Code:
  1. void MainWindow::resizeEvent(QResizeEvent *event)
  2. {
  3. ui->centralWidget->setMaximumHeight(geometry().height());
  4. ui->centralWidget->setMaximumWidth(geometry().width());
  5. }
To copy to clipboard, switch view to plain text mode 

Thx