QPointer<QLabel> label = new QLabel;label->setText("&Status:");...if (label)label->show();
C++ (Qt)void QSomeObject::doSomehing(){ QPointer pointer( this ); emit someSignal(); if ( !pointer ) return; ...}