C++ (Qt)if (pointer) pointer->method();
C++ (Qt)delete pointer;pointer = 0;
C++ (Qt)class NotQObject{...public: void someFunct();} class emitClass : public QObject{... signals: void mySignal(NotQObject *obj);} class slotClass1 : public QObject{...public slots: void slotMySignal(NotQObject *obj) { ... obj->someFunct(); ... }} class slotClass2 : public QObject{...public slots: void slotMySignal(NotQObject *obj) { ... delete obj; ... }}