[Interest] Qml extend basic types methods
Jérôme Godbout
jerome at bodycad.com
Fri Dec 4 21:19:58 CET 2015
Hi,
anybody known if and how it is possible to extends the available methods to
Qt.vector3d, Qt.vector2d, Qt.vector4d... and the like.
Maybe like in javascript we can do:
String.prototype.myCustomMethod = function(str) { ... }
We are refactoring code, we had all this function into a Qml singleton
implemented either in javascript or in C++, I would like to have them
directly into the right type instead.
Thanks,
Jerome
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20151204/1bb251be/attachment.html>
More information about the Interest
mailing list