Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.12.0, 5.13.1
-
Ubuntu 18.04
-
-
da94d6586cbe6b9c12dec8ecc0f842aad807b0d3 (qt/qtquickcontrols/5.13) 827d7680f84b24427f6fc501ba21cb8445679bc3 (qt/qtquickcontrols/5.12)
Description
Since Qt 5.12, when using a Qt Quick Controls 1 TreeView, a debug message is printed on redraw of the view about a model size with a negative number:
Model size of -7 is less than 0 Model size of -8 is less than 0 Model size of -96 is less than 0 Model size of -98 is less than 0
This issue can be reproduced by running the File System Browser Example with Qt 5.12.
The warning does not seem harmful and was introduced by the commit 92b2a4f58d related with the issue QTBUG-54752.
This fix returns an Invalid type and may be related with the issue QTBUG-71789.
Attachments
For Gerrit Dashboard: QTBUG-72543 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
275110,2 | Only calculate the height of the ListView when there are model entries | 5.13 | qt/qtquickcontrols | Status: MERGED | +2 | 0 |
275124,2 | Only calculate the height of the ListView when there are model entries | 5.12 | qt/qtquickcontrols | Status: MERGED | +2 | 0 |