C++ (Qt)qDebug() << obj;obj->deleteLater()
C++ (Qt)QObject *obj = 0;obj->deleteLater();
C++ (Qt)QMyThtread::~QMyThtread( void ){ qDebug() << "destroying" << this;}
connect(mythread, SIGNAL(finished()), this, SLOT(removemythread()), Qt::DirectConnection)
C++ (Qt)bool QObject::connect ( const QObject * sender, const char * signal, const char * method, Qt::ConnectionType type = Qt::AutoConnection ) const