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

Add ability to append items to QML lists

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P4: Low
    • None
    • 4.8.3, 5.0.0
    • All platforms. All versions of Qt.

    Description

      Given a QML list:

      FruitBasket {
           fruit: [
               Apple {},
               Orange{},
               Banana{}
           ]
       }
      

      I would like to be able to append items from javascript.

      fruit.append(pear)

      Several requests for this:

      http://www.qtcentre.org/threads/42806-QDeclarativeListProperty-add-item-from-qml-application
      http://lists.qt.nokia.com/pipermail/qt-qml/2010-October/001452.html
      http://qt-project.org/forums/viewthread/7315

      Attachments

        Issue Links

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

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              cmeyer Chris Meyer
              Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes