Revert wrong commit. The problem with QVariant API needs to be analysed more deeply