You not only can, but you have to define the function:
Qt Code:
  1. quint32 qHash(const Key &key);
To copy to clipboard, switch view to plain text mode 
unless you're working with some standard type, for which the function already has been provided.