#include <QtCore/qpointer.h>
#ifndef QPOINTER_H
template < typename T > class QPointer{
   /* Some contents are skipped to improve readability */
   private: class QObject* o;
   /* ... */
};
#endif // QPOINTER_H