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

qmlsc and qmlcachegen miscompile draganddrop/grid example

    XMLWordPrintable

    Details

    • Commits:
      1e722f5e8e (qt/qtdeclarative/dev) 1e722f5e8e (qt/tqtc-qtdeclarative/dev) b386b6491d (qt/qtdeclarative/6.3) d864d15a66 (qt/qtdeclarative/6.2) d864d15a66 (qt/tqtc-qtdeclarative/6.2) b386b6491d (qt/tqtc-qtdeclarative/6.3)

      Description

      There is a lookup for a property of QQmlDelegateModelAttached in there. QQmlDelegateModelAttached has a dynamic meta object, but also some regular properties. We don't see the dynamic meta object at compile time, but at run time we cannot create a QQmlPropertyCache for the type. This leads to a type error being thrown from the lookup.

      property int visualIndex: DelegateModel.itemsIndex
      

      itemsIndex is one of the regular properties. Therefore the compiler assumes it can use a lookup for it.

        Attachments

        For Gerrit Dashboard: QTBUG-101349
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            ulherman Ulf Hermann
            Reporter:
            ulherman Ulf Hermann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes