Correct QVariant to int