#include #include class Employee { public: Employee() {} Employee(const QString &name); QString name() {return myName;} size_t test_var = qHash("blabla", 0); private: QString myName; }; inline size_t qHash(Employee *key, size_t seed) { return qHash(key->name(), seed) ^ 4; } size_t test_var_2 = qHash("blabla", 0); size_t anotherFunction() { int toto_NOT_qhash_related = 3; return qHash("blabla", 0); } void test() { QString name = "Bob"; Employee *theemploye = new Employee(name); size_t foo = qHash(theemploye, 0); size_t foo_g = qHash(theemploye, 0); unsigned char p[2]; size_t foo_bits = qHashBits(p, 0, 0); static const int ints[] = {0, 1, 2, 3, 4, 5}; size_t foo_range = qHashRange(ints, ints); size_t foo_rangec = qHashRangeCommutative(ints, ints); }