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

If list model support function property would be better.

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.15.2
    • Core: Item Models
    • None
    • All

      Hi guys,

          I want to add a model to my repeater, and want to add a function property to each element.  The document says that from Qt 5.11 , ListElement support this feature. it's true. 

      But only static ListModel support this. If I want to add new ListElement to the model, it will be failed. Please see the demo. I want to ListModel support adding element with function property  dynamically  .

        1. test_js.zip
          5 kB
          york123 chen123
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            dfaure_kdab David Faure
            yorkxychen york123 chen123
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes