Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Why QScriptValue and not QVariant?
SimonHaines last edited by
I've been browsing through the QScript code and wondered why script values are contained to their own type (QScriptValue) which has pretty much the same underlying machinery as QVariant, whereas it would be trivial to write QVariant-aware wrapper types for the ECMAScript types (Date, RegEx, etc) and use these.
Are there implementation concerns I'm not aware of that precludes using variants? Is it faster to avoid the QVariant infrastructure? Am I missing something?