HappyCoder
3rd March 2016, 09:56
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:
void MainWindow::resizeEvent(QResizeEvent *event)
{
ui->centralWidget->setMaximumHeight(geometry().height());
ui->centralWidget->setMaximumWidth(geometry().width());
}
Thx
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:
void MainWindow::resizeEvent(QResizeEvent *event)
{
ui->centralWidget->setMaximumHeight(geometry().height());
ui->centralWidget->setMaximumWidth(geometry().width());
}
Thx