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

Add ability to append items to QML lists

XMLWordPrintable

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

      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

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

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

              Created:
              Updated:

                There are no open Gerrit changes