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

If list model support function property would be better.

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Reported
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: 5.15.2
    • Fix Version/s: None
    • Component/s: Core: Item Models
    • Labels:
      None
    • Platform/s:
      All

      Description

      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  .

        Attachments

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

          Activity

            People

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

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes