Making your objects serializable with QVariant