[Development] Override toString() method for c++ QObject types in QML
pumpkinteapot at gmail.com
Sat Nov 7 18:52:31 CET 2015
Is it possible to override the toString method for native c++ QObject types
for use in QML scripts?
Q_INVOKABLE QString toString() const;
This doesn't appear to work because it is overridden by some default
implementation which returns a pointer value. Is this done intentionally?
It would just improve the readability of debug messages and errors when
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Development