Wrong Form position if set to poMainFormCenter
Original Reporter info from Mantis: shogun
-
Reporter name: Cyril LAMY
Original Reporter info from Mantis: shogun
- Reporter name: Cyril LAMY
Description:
Using Qt5 :
If a form that have WindowState set to wsMaximized is calling a second form that has position set to poMainFormCenter, the second form isn't centered into the first form.
If changing Widgetset to cocoa and running the same program, the second form is centered into the first form.
If using QT5 and setting the first form windowState to wsNormal and setting width and height manually to the maximum screen size, the second form will be centered into the first. The problem occurs only when the first form windowstate is set to wsMaximized.
Steps to reproduce:
Create a new project.
Set Form1 WindowState to wsMaximized .
Create a new form (Form2).
Set Form2 position to poMainFormCenter.
On form1, create a button that make a form2.showmodal when clicked on it.
Additional information:
My screen resolution is 2560x1440.
Mantis conversion info:
- Mantis ID: 34698
- OS: OSX
- OS Build: Sierra
- Platform: iMac 27-inch, Late 2013
- Version: 2.0RC2
- Fixed in revision: 59893 (#7a61d8d8)