Using Automatic Conversion from QML to an Object Pointer
Instead of using explicit conversion using defined fromVariant()
the types are registered under their names using qRegisterMetaType<>()
and the QML engine is left to do the conversion.
Edited by Karel Slaný