#include <QtCore/qhash.h> #ifndef QHASH_H template < typename Key, typename T > class QHashIterator{ /* Some contents are skipped to improve readability */ private: typename QHash < Key, T >::const_iterator i; /* ... */ }; #endif // QHASH_H