Updated use of std::vector to QHash