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

QJSEngine replaces toString() method of QObject

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes