Details
-
Bug
-
Resolution: Won't Do
-
P2: Important
-
None
-
5.15.15, 5.15.17, 6.5.5, 6.7.1, 6.8.0
Description
This issue is only reproduced on Android.
Expected Behavior:
When a window pops up a dialog, the dialog is displayed centered to its parent window by default.
Actual Behavior:
When a minium height, which is larger than a certain value, is configured to the dialog, the top left corner of the dialog is centered, as the result, the whole dialog is shifted to the bottom right direction.
Steps to reproduce the issue:
1) Open the attached example project. In MainWindow constructor, enable one of test patterns (#if () / #elif() / #endif) which labeled "NG".
2) Run the application on Android.
3) Tap "show dialog" button. A black dialog show up with shifted to the bottom right (not centered to its parent window). See attached screen shot.
Side note :
1) The issue is reproduced depending on the cofigured minimum height.
When the parent window size is (360, 619), the issue is reproduced depending on the minimum size settings of dialog, as follows :
- the minimum dialog size = (538, 538) : the issue reprroduced
- the minimum dialog size = (537, 537) : NOT reproduced
- the minimum dialog size = (1000, 538) : the issue reprroduced
- the minimum dialog size = (1000, 537) : NOT reproduced
2) When setFixedSize(538, 538) is used instead of setMinimumSize/Height(), the issue is not reproduced.
3) This issue is reproduced with Qt 5.15.15, Qt 5.15.17, Qt 6.5.5, Qt 6.7.1.
Attachments
For Gerrit Dashboard: QTBUG-126140 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
601212,2 | QPA: Add helper to fit a geometry into its transient parent | dev | qt/qtbase | Status: ABANDONED | 0 | +1 |