Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.4.2, 6.7.0
-
None
-
-
6f7deef6d (dev), 0bd1fa6ce (6.7), 1bc30751d (tqtc/lts-6.5), df267df5a (6.7.1)
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 |
558675,1 | Do not try to rearrange if the width/height is < 0 | tqtc/lts-6.2 | qt/tqtc-qtdeclarative | Status: NEW | -1 | +1 |
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 |
558733,2 | Do not try to rearrange if the width/height is < 0 | 6.7.1 | qt/qtdeclarative | Status: MERGED | +2 | 0 |