- 
    Bug 
- 
    Resolution: Unresolved
- 
    P3: Somewhat important 
- 
    None
- 
    6.10.0
- 
    None
Minimise a widget then hover over it in the task bar and click the cross without maximising it.
It will call hideEvent twice without a showEvent call.
I was expecting every hideEvent call to be paired with a showEvent. Is this not the case?
Steps:
1) Run the example file attached
2) Minimise the window
3) Hover over the application in the task bar and click the cross.

The console should look like this
show hide hide
- resulted from
- 
                    PYSIDE-3222 Closing a window while minimised calls hideEvent again -           
- Closed
 
-         
| For Gerrit Dashboard: QTBUG-141517 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V | 
| 687270,1 | QWidget: Set visibility window state attribute for root widgets | dev | qt/qtbase | Status: NEW | -1 | 0 | 
