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

Repeater: count property not behaving as expected

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.1.1
    • None

      The count property of the Repeater item is supposed to hold the number of items in the Repeater, but that is not true while the items are being created/deleted.

      Example:

      • set model = 3
      • all items will be deleted, starting at index 0
      • count is set to 0
      • count is set to 3
      • items will be created, starting at index 0

      Count tends to be too high during item creation/deletion. If a user tries to iterate through the items, based on a change in the count property the itemAt method will always return null for several items.

      I would expect it to behave like this:

      • set model = 3
      • count is set to 0
      • items will be deleted
      • items will be created
      • count is set to 3

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

            marco.hillenbrand Marco Hillenbrand
            marco.hillenbrand Marco Hillenbrand
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes