qMakePair(prevRemote.at(prdIndex), QContact()) will deduce the correct type.