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

DelegateModel: using for ... of loop in JS to iterate DelegateModel.groups attached property causes a crash

    XMLWordPrintable

    Details

    • Commits:
      185760fa44 (qt/qtdeclarative/dev) c49fbc7a86 (qt/qtdeclarative/6.2) c49fbc7a86 (qt/tqtc-qtdeclarative/6.2) 185760fa44 (qt/tqtc-qtdeclarative/dev) 03b2accad9 (qt/qtdeclarative/6.3) 03b2accad9 (qt/tqtc-qtdeclarative/6.3)

      Description

      Using for .. of loop in JS when iterating over groups an item may have (DelegateModel.groups) seems to sooner or later trigger a crash. In the meanwhile using for .. in or more old fashioned for loop seems to work fine.

      Steps to reproduce the problem:

      1. Run the attached project
      2. check the checkbox (=> will use for .. of loop)
      3. click repeatedly on "toggle selection" => crash

      If the checkbox is not checked the example will use different style for loop and no crash will occur.

        Attachments

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

          Activity

            People

            Assignee:
            ulherman Ulf Hermann
            Reporter:
            miikapernu Miika Pernu
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes