clousque
6th May 2014, 14:17
Hi Folks,
I try to reimplement the minimize button by doing this in the slot connected to the button
void MainWindow::slotMinimizeWindow()
{
this->setWindowState(Qt::WindowMinimized);
}
This works pretty well when the window was not full screen.
If the window was full screen (Qt::WindowFullScreen), clicking the task bar restores the window in non full screen state (Qt::WindowNoState). In this case, when minimizing, the window seems to go into an intermediary state corresponding to the previous non full screen state of the window...
Any advice would be appreciated
I try to reimplement the minimize button by doing this in the slot connected to the button
void MainWindow::slotMinimizeWindow()
{
this->setWindowState(Qt::WindowMinimized);
}
This works pretty well when the window was not full screen.
If the window was full screen (Qt::WindowFullScreen), clicking the task bar restores the window in non full screen state (Qt::WindowNoState). In this case, when minimizing, the window seems to go into an intermediary state corresponding to the previous non full screen state of the window...
Any advice would be appreciated