QPointer is a Qt class which provides guarded pointers to QObject.
I have read from the Qt documentations about QPointer, QSharedPointer and QWeakPointer classes. It says: QPointer is a template class …