Details
Description
Tested in a completely new QtQuick application. For some reason, setting margins to 1 crashes the application on startup with a QList exception for index out of range.
ASSERT failure in QList::at: "index out of range", file C:\Users\qt\work\qt\qtbase\include\QtCore\../../src/corelib/tools/qlist.h, line 423
I attached an example application, where you'll find a layout and comments stating how to have the application not crash on startup. This doesn't seem intended though, how setting anchors.margins to 1 causes this.
Attachments
For Gerrit Dashboard: QTBUG-124456 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
558497,3 | Do not try to rearrange if the width/height is < 0 | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
558556,2 | Do not try to rearrange if the width/height is < 0 | 6.7 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
558608,2 | Do not try to rearrange if the width/height is < 0 | tqtc/lts-6.5 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |
558675,4 | Do not try to rearrange if the width/height is < 0 | tqtc/lts-6.2 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |
558733,2 | Do not try to rearrange if the width/height is < 0 | 6.7.1 | qt/qtdeclarative | Status: MERGED | +2 | 0 |