#include <QtCore/qlist.h> #ifndef QLIST_H template < typename T > class QList{ /* Some contents are skipped to improve readability */ public: int indexOf(T const & t, int from = 0) const /* ... */ }; #endif // QLIST_H