Moved qRegisterMetaType to the optimal location.