Hi
The following code gives error.
Qt Code:
  1. QHash<float,int> hash;
  2. hash.insert(-1.5,1);
  3.  
  4. /usr/local/Trolltech/Qt-4.4.2/include/QtCore/qhash.h:838: error: call of overloaded `qHash(const float&)' is ambiguous
To copy to clipboard, switch view to plain text mode 

Where as if i use QMap instead of QHash such as

Qt Code:
  1. QMap<float,int> mmap;
  2. mmap.insert(-1.5,1);
To copy to clipboard, switch view to plain text mode 

then the code works fine.