Try to resolve problems with QVariant API changing