Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-72543

Qt Quick Controls 1 TreeView prints Model size error

    XMLWordPrintable

Details

    • Linux/X11
    • 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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            rreignier Romain Reignier
            Votes:
            11 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes