Details
-
Bug
-
Resolution: Done
-
P4: Low
-
5.5.1, 5.6.0 RC
-
Windows 7
-
b8f89d8ef3f695746a8a48084d8ea710eb508d3d (qtbase/5.6, 23.2.2016, 5.6.1)
Description
[Windows]: When toggling the FramelessWindowHint flag off and then on again on a window then it will end up being too small for the contents. What happens is that the window itself once it has been toggled back on again cuts off the contents of the widget as it believes them to be smaller than reality, unfortunately resizing the window doesn't help as that will also resize the contents to be bigger at the same time so it will always be cut off. Switching to another type such as Qt::Dialog and then back to Qt::Window helps to restore it.
This can be reproduced with the windowsflags example, just select Qt::FramelessWindowHint and then remove it, now you can see that the pushbutton is completely cut off.
Attachments
Issue Links
- resulted from
-
QTBUG-40578 Windows: Painting/resizing issues with windows made frameless by handling WM_NCCALCSIZE
-
- Closed
-
For Gerrit Dashboard: QTBUG-51224 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
150074,2 | Windows QPA: Use window flags stored in QWindowsWindow for frame geometry. | 5.6 | qt/qtbase | Status: MERGED | +2 | 0 |