Code to detect usage of QVariant