Bug 120005 - Qt application could be minimized only once in Mac.
Summary: Qt application could be minimized only once in Mac.
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Qt (show other bugs)
Version: 420+
Hardware: Mac OS X 10.8
: P2 Major
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-19 03:22 PDT by Nitin Rajan
Modified: 2022-07-29 10:45 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nitin Rajan 2013-08-19 03:22:39 PDT
Overview:
---------
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)" .

[code] 
#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    connect(ui->minButton, SIGNAL(clicked()), this, SLOT(minimizeWindow()));
}

void MainWindow :: minimizeWindow()
{
    window()->setWindowState(Qt::WindowMinimized);
}
[\code]

Actual Results:
----------------
The window minimizes for the first time. Successive call to minimize does not have any action.


Expected Results:
---------------------
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
Comment 1 Alexey Proskuryakov 2022-07-29 10:45:31 PDT
The Qt port has been removed from WebKit, resolving.