Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.8.0 FF
-
None
-
a9e6cbb06 (dev), 4d7fcc9cf (6.8), 946ea1cc5 (6.7), 93a18c046 (tqtc/lts-6.5)
Description
Reverting https://codereview.qt-project.org/c/qt/qtdeclarative/+/546613 fixes the issue. That patch is meant to make QQuickApplicationWindow check to see if the user has set an explicit width/height, but that check doesn't seem to be working correctly?
Code
import QtQuick import QtQuick.Controls.Basic ApplicationWindow { id: window width: 640 height: 480 visible: true background: Rectangle { property real scaleFactor: shrinkBtn.checked ? 0.5 : 1 color: "green" width: window.width * scaleFactor height: window.height * scaleFactor anchors.centerIn: parent } Button { id: shrinkBtn checkable: true text: "Shrink Background" } }
Expected outcome when button is checked (Qt 6.7.0)
The green background becomes half the size of the window
Actual outcome when button is checked (dev, 2024-04-25)
The green background remains the same size as the window
Attachments
Issue Links
- relates to
-
QTBUG-122962 Bindings on Overlay's size and position are not respected
- In Progress
For Gerrit Dashboard: QTBUG-124744 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
557653,7 | ApplicationWindow: respect explicitly set background size | dev | qt/qtdeclarative | Status: MERGED | +2 | +1 |
569355,2 | ApplicationWindow: respect explicitly set background size | 6.8 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
569535,2 | ApplicationWindow: respect explicitly set background size | 6.7 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
569935,2 | ApplicationWindow: respect explicitly set background size | tqtc/lts-6.5 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |