Declared the type of the QVariant to fix failing test on jenkins.