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

QQmlListProperty should accept FunctionObjects

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 6.0.0 Beta3
    • Quick: Other
    • None
    • All

    Description

      QQmlListProperty only accepts function pointers, but it should also accept functionObjects / lambdas. This would reduce the boilerplate code necessary to link a QQmlListProperty. Also the owning QtQuickItem could be installed as function object.

      Best would be to use c++ concepts for this.
      e.g. concept AppendFunction = requires (T t) ...

      Attachments

        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
            febbe Fabian Keßler
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes