I write a library which uses Qt's meta type system. The user of my library can provide values of custom types which get wrapped in a QVariant. Later in some code internally in the library, I need to serialise this QVariant. I implemented serializers for a couple of types and I really don't need to support every type known to the Qt meta type system. I serialise the values in order to send them over the network using JSON.I write a library which uses Qt's meta type sys