- 
    
Bug
 - 
    Resolution: Done
 - 
    
P1: Critical
 - 
    5.13.1
 - 
    None
 - 
    WIndows 7 SP1 classic or basic desktop
 
- 
        
 - 
        a8ec52d5e76bc769ed63be1ad543be8f687e5dac (qt/qtbase/5.13) 2812f0861c99d9e82a3615a25e272def845b2090 (qt/qtbase/5.12)
 
Hi, using Qt 5.13.1 on Windows 7 classic or basic desktop (i.e. with Aero disabled, non-transparent menu bars) the close button (the red X) no longer works if I set the app's minimum and maximum sizes to be the same.
On Windows 10 or Windows 7 with Aero enabled the red close button works. On earlier Qt versions, like Qt 5.12.x or 5.7.x, the close button also works fine on Windows 7 classic or basic desktop. This behavior seems to have started with Qt 5.13 (haven't tested 5.13.0).
Steps to reproduce:
Using Qt Creator, create an empty vanilla widget application. In MainWindow's constructor, insert these 2 lines after ui->setupUi(this); :
setMinimumSize(800,800);
setMaximumSize(800,800);
Currently I use the workaround setMinimumSize(800,801); to get the red close button to work again in Qt 5.13.1 but the problem is that the mouse cursor changes to indicate that a vertical resize is possible ![]()
- is duplicated by
 - 
                    
QTBUG-79636 Dialogs with fixed size can have their titlebar "frozen"
-         
     - Closed
 
 -         
 - 
                    
QTBUG-78656 Can not close a fixed size window.
-         
 - Closed
 
 -         
 - 
                    
QTBUG-79922 [Reg 5.11.1->5.13.1]Minimize and close buttons not working for a fixed size window with Windows 7
-         
 - Closed
 
 -         
 
- relates to
 - 
                    
QTBUG-77220 Resize arrow appears even when widget is Fixed Size
-         
 - Closed
 
 -         
 
| For Gerrit Dashboard: QTBUG-78262 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V | 
| 274716,4 | Windows QPA: Fix close button not working on Windows 7 | 5.13 | qt/qtbase | Status: MERGED | +2 | 0 | 
| 281045,2 | Windows QPA: Fix close button not working on Windows 7 | 5.12 | qt/qtbase | Status: MERGED | +2 | 0 | 
| 281046,1 | Windows QPA: Fix close button not working on Windows 7 | 5.12.6 | qt/qtbase | Status: ABANDONED | +2 | 0 |