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

QML Repeater draws forever when model is a number greater than 330585

    XMLWordPrintable

    Details

    • Platform/s:
      Linux/X11

      Description

      Example component:

          Repeater {
              id: rep
              model: 330585
              delegate: Rectangle {
                  x: index%500;
                  y: Math.floor(index/500);
                  width: 100
                  height: 100
                  radius: 25
                  color: Qt.rgba(index%255/255, 0, 0, 1)
              }
          }
      

      is rendered ~3s on my machine.

      When I increase model by only 1:

          Repeater {
              id: rep
              model: 330586
              delegate: Rectangle {
                  x: index%500;
                  y: Math.floor(index/500);
                  width: 100
                  height: 100
                  radius: 25
                  color: Qt.rgba(index%255/255, 0, 0, 1)
              }
          }
      

      it renders more or less forever. Do you have any idea why? I didn't notice 330586 to be any special number (like 2^n).

        Attachments

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

          Activity

            People

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            jaskmar Mariusz Jaskółka
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes