What is a QPointer?

What is a QPointer?
The QPointer is a template class. QPointer .
QPointer provides guarded pointers to QObject.

QPointer label = new QLabel;

QPointer is automatically set to 0 when the referenced object is destroyed(Normal C++ pointers, will become "dangling pointers" in such cases).
T must be a subclass of QObject.

No comments: