C++ (Qt)QPointer self( this );emit something();if ( !self ) return;
class ODSSCon : public QObject{Q_OBJECT.............private: QNetworkAccessManager manager; QNetworkRequest request; QNetworkReply *currentReply;..............public slots: void readyReadReply(); void finishedReadReply(); void replyError(QNetworkReply::NetworkError error);..............};
....currentReply = manager.get(request); connect(currentReply, SIGNAL(readyRead()), SLOT(readyReadReply())); connect(currentReply, SIGNAL(finished()), SLOT(finishedReadReply())); connect(currentReply, SIGNAL(error(QNetworkReply::NetworkError)), SLOT(replyError(QNetworkReply::NetworkError)));....