Move away from the QVariant::Type as much as possible and move towards the QMetaData::Type.