c++ - QtQml conversion for Non-QObject types -


since qtscript deprecated in qt5.5, have migrate qtqml js engine. can't find articles, how migrate painless.

in old code value-based types (not derived qobject) possibility create wrapper, deriving qscriptable. in qtqml there no qscriptable. know, have similar conversion qml basic types,

point     <-> qpoint rectangle <-> qrect 

i think, should possible register value-type conversion functions wrapper , vice-verse.

do know how achieve it?


Comments

Popular posts from this blog

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -