Qt application could be minimized only once in Mac
The logic to minimize the application using 'window()->setWindowState(Qt::WindowMinimized)' is only working for the first time in Mac. Successive call to the same after maximizing the window does not have any action.
Steps to Reproduce:
A Qt application was created with a 'minimizeScreen' button which has the action to minimize the window using a call to "window()->setWindowState(Qt::WindowMinimized)" .
MainWindow::MainWindow(QWidget *parent) :
connect(ui->minButton, SIGNAL(clicked()), this, SLOT(minimizeWindow()));
void MainWindow :: minimizeWindow()
The window minimizes for the first time. Successive call to minimize does not have any action.
The window must be minimized every time when the user presses the 'minimizeScreen' button.
Build Date & Platform:
Tried with QT 5.0.2 and QT 5.0.1 . OS : MAC OSX 10.8.3
Hi and welcome to devnet,
Since you might have found a bug, you should rather check and maybe report this on the "bug report system":http://bugreports.qt-project.org/issues/
This forum is user oriented and generally not followed by Qt's developers. Your findings will probably get lost. You can also ask on the interest mailing list.
Thank you for the input. I had already raised a defect in https://bugs.webkit.org/show_bug.cgi?id=120005
Why did you report a Qt bug on the WebKit bug report system ?
The issue seems to be related to Webkit. Will it be good to move it to bugreports.qt-project.org ?
You're only showing Qt code so it's impossible to say whether the problem comes from webkit.
Can you provide a complete minimal example that shows this behavior ?