qtdeclarative
qtdeclarative copied to clipboard
Qt 6.2 QJSEngine meyatype converter
It was Nice to be able to register a meyatype converter and the QJSEngine convert for that object to a data type. Until now i create a class of QIcon and add and invokable method that returns *this. Like that i can recive on c++ a QIcon as reference Is there something that Im missing? If i create a object in c++ with QJSEngine::toScriptVale of a QIcon it works as well but like that i canto create a new object of that type and if i Change the value it chances for all c++ calls, in JavaScript is nota trivial to clone a object it was Nice to be able to clone it and fonte destroy the Last calls.