Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.6, 6.8
-
-
92000ffe9 (dev), bde88b584 (6.8)
Description
When using a QQuickWidget and showing a popup the popup can only be dismissed if the user clicks in the top left of the window:
The reason for this is because startup ordering is as follows:
- When a QQuickOverlay is created, this is positioned to be the size of the contentItem, positioned to be centered within the window
- It updates when the size of the contentItem changes
- QQuickWidget creates the contentItem at the right size before assigning it to the window
- At the time QQuickOverlay is created the window is of a null size
- It has no reason to re-update until the window is resized
I've attached a screenshot from gammaray and a tiny app reproducing the issue.
Attachments
For Gerrit Dashboard: QTBUG-128935 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
598375,2 | QQuickOverlay: Update geometry when content item or window geometry changes | dev | qt/qtdeclarative | Status: ABANDONED | 0 | 0 |
600347,2 | QQuickWidget: Update initial contentItem size | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
603208,2 | QQuickWidget: Update initial contentItem size | 6.8 | qt/qtdeclarative | Status: MERGED | +2 | 0 |