#pragma once #include #if (QT_VERSION < QT_VERSION_CHECK(5, 14, 0)) // As of 5.14 there is a specialization std::hash #include #include #include namespace std { template<> struct hash { inline std::size_t operator()(QString const& s) const { return qHash(s); } }; } #endif