[Webkit-unassigned] [Bug 120005] New: Qt application could be minimized only once in Mac.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Aug 19 03:23:08 PDT 2013


https://bugs.webkit.org/show_bug.cgi?id=120005

           Summary: Qt application could be minimized only once in Mac.
           Product: WebKit
           Version: 420+
          Platform: Macintosh
        OS/Version: Mac OS X 10.8
            Status: UNCONFIRMED
          Severity: Major
          Priority: P2
         Component: WebKit Qt
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: nitin.rajan at itaas.com


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

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list