Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.15.1
Description
header's and footer's width should be resized to Window's width according to https://doc.qt.io/qt-5/qml-qtquick-controls2-applicationwindow.html#header-prop
However, it is not resized in Qt5.15.1 when layout is used. This works fine with Qt5.15.0.
- The problem appears only when the app starts. If you resize the window, the header's width is adjusted accordingly.
- The header's width is adjusted properly when using other component, e.g. Rectangle
The workaround would be to bind the item's width to the parent.width but this shouldn't be necessary.
ApplicationWindow { header: RowLayout { Label { text: "Label 1" } Label { text: "Label 2" } Label { text: "Label 3" } }
How to reproduce :
- Use Qt5.15.1
- Run QTBUG-87708_ApplicationWindowResizeIssue.zip
Attachments
For Gerrit Dashboard: QTBUG-87708 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
347433,1 | qquicklinearlayout: Fix layouts having wrong geometry when completed | dev | qt/qtdeclarative | Status: ABANDONED | 0 | 0 |
353878,5 | Add recursion guard to QQuickApplicationWindowPrivate::relayout() | dev | qt/qtquickcontrols2 | Status: MERGED | +2 | 0 |
354923,2 | Add recursion guard to QQuickApplicationWindowPrivate::relayout() | 6.2 | qt/qtquickcontrols2 | Status: MERGED | +2 | 0 |
354924,3 | Add recursion guard to QQuickApplicationWindowPrivate::relayout() | tqtc/lts-5.15 | qt/tqtc-qtquickcontrols2 | Status: MERGED | +2 | 0 |