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

Support QtScript style method overloading in QML

    XMLWordPrintable

Details

    • 4c4734cae65b7c5907dc786e02b13b020eb22aaf

    Description

      See http://qt.gitorious.org/+qt-developers/qt/staging/commit/4a665ff5da05860f5eb46e3982ef3d8163a6cf59
      The fact that QML doesn't support overloaded slots is not documented (and it's not only relevant for supporting "legacy C++ classes"; what about custom objects that are exported via setContextProperty()?).
      QML will silently call one of the overloads (the first one in the meta-object); it would make more sense to throw an error.
      Even better would be if it were possible to address the performance issues in QtScript, so that the logic could be shared.
      Likewise QML does not support C++ methods with default parameters are these are exposed by Qt as overloaded methods.

      Attachments

        Issue Links

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

          Activity

            People

              aakenned Aaron Kennedy
              kenthans Kent Hansen (Inactive)
              Votes:
              4 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes