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

TableModel unusual memory usage when scrolling while adding rows.

    XMLWordPrintable

Details

    • Windows

    Description

      The attached project has a TableModel, pressing insert calls insertRow on the model 99 times while setting the scrollbar to the bottom of the existing model after every insertion. Pressing delete calls removeRows 99 times while doing the same to the scrollbar.
      I'm able to observe an increase in memory used by the application after pressing insert, going up with each row inserted. The application slows down as well. When pressing delete afterwards the increased memory usage persists. Calling insert again afterwards results in even more memory usage.
      If I comment out the statement to set the scrollbar (line 187) the memory usage increases slightly on pressing insert but stabilizes quickly. The memory used doesn't go down if delete is pressed but pressing insert again afterwards does not result in too much extra memory used.

      Attachments

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            kevin.zhang Kevin Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: