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

Support QtScript style method overloading in QML

XMLWordPrintable

    • 4c4734cae65b7c5907dc786e02b13b020eb22aaf

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes