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

QJSEngine replaces toString() method of QObject

XMLWordPrintable

    • 3fd49c82cf (qt/qtdeclarative/dev) 3fd49c82cf (qt/tqtc-qtdeclarative/dev)

      When implementing an invokable toString() method in a QObject-derived class, calling the toString() method from within QML always results in MyClass(0x19372e0). It is not possible to override this particular method.

      This was also mentioned by laknoll on the mailing list: https://lists.qt-project.org/pipermail/development/2015-November/023713.html

      It would be great if that could be fixed.

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

            ulherman Ulf Hermann
            rweickelt Richard Weickelt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes