Register metatypes with qRegisterMetaType