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

Support javascript functions from javascript array model to delegates

    XMLWordPrintable

Details

    Description

      In case like this:

      ListView {
       model: [ { fn: function(){...} }, ... ]
       delegate: MouseArea {
        onClicked: fn()
       }
      }
      

      This could be worked around by using an array of QtObjects, but it would be nice if this also worked with plain javascript objects

      Attachments

        Issue Links

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              poikelin Joni Poikelin
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: