Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.12.3, 5.14.2
-
Desktop
-
-
60ec350bc79d562c0611bc31e8655729272c31d6 (qt/qtbase/dev) d9b7b0f1598be85e15bf85d0e955f5f379e28945 (qt/qtbase/5.12) 8ce794b4a738e8f80681de237095d5c71a542546 (qt/tqtc-qtbase/5.15)
Description
If Frameless QMainWindow is move to 00 having width fit to screen it shifts to left fe pixel.
Works good with Qt5.12.2 broken in 5.12.3
Attached example reproduces it:
Steps:
-start the example, the main window is shown at a default position close to the top left corner.
-Click on the button "no titleBar move" the title bar disappears correctly and the window should be positioned at (0, 0) (covering exactly the width of the screen on a standard HD display).
However, the window is shifted a few pixels to the left. If you click the button again, it is repositioned correctly, and from then on, it switches between the both positions with each further click.
Strane is, if the code which is triggered by the button is called in the constructor (commented out in my example project), the window is positioned correctly and will not jump between two positions when "no titleBar move" is clicked
Attachments
Issue Links
- is duplicated by
-
QTBUG-91861 When calling winId() on a QWidget before calling setWindowFlags() to make it a frameless window will cause it to return -8x0 for pos() when it is placed at 0x0
- Closed