QPointer is a Qt class which provides guarded pointers to QObject.
QPointer is a template class which provides quarded pointers to QObject.
Guarded pointer QPointer<T> is like normal pointer T* except it is automatically set to 0 when referenced object is destroyed. T must be subclass of QObject.
Official documentation can be found here for Qt 4.8 and here for Qt 5.