<div dir="ltr"><div><div><div><div>Is it possible to override the toString method for native c++ QObject types for use in QML scripts?<br><br></div>e.g. using<br><br>Q_INVOKABLE QString toString() const;<br><br></div>This doesn't appear to work because it is overridden by some default implementation which returns a pointer value. Is this done intentionally? Could a workaround  be done through javascript prototype methods...<br><br>It would just improve the readability of debug messages and errors when running scripts.<br><br></div>Huge Thanks,<br></div>Luke Parry<br></div>