#pragma once #if (QT_VERSION < QT_VERSION_CHECK(5, 14, 0)) #include #include #include namespace std { template<> struct hash { size_t operator()(const QString& s) const noexcept { return (size_t) qHash(s); } }; } #else #include #endif