Details
-
Bug
-
Resolution: Done
-
P2: Important
-
None
-
5.1.1, 5.2.1, 5.3.0 RC1
-
Windows 7 64-bit using MSVC 2012 and 2013.
-
3ab6653d97a5dd01fd5f5cb4e52d5816274e4cbd
Description
One aspect of void QGridLayout::addLayout(QLayout * layout, int row, int column, int rowSpan, int columnSpan, Qt::Alignment alignment = 0) is described as "If rowSpan and/or columnSpan is -1, then the layout will extend to the bottom and/or right edge, respectively." in Qt Assitant.
However, it turns out I can NOT set rowSpan to -1 when row>0 (and that is ,you can ONLY set rowSpan to -1 when row=0, same to column/columnSpan), or the debugger would give error "ASSERT failure in QVector<T>::at: "index out of range", file ..\..\include/QtCore/../../src/corelib/tools/qvector.h, line 350".
maybe a bug, maybe just need more explaination and notes in Assistant.
Attachments
For Gerrit Dashboard: QTBUG-38052 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
105620,6 | Fixed crash when adding items with spans | 5.4 | qt/qtbase | Status: MERGED | +2 | 0 |