Do I need to abort/close pending QNetworkReply?
-
In my class I start a HTTP request and wonder if I need to abort/close the QNReply instance that has still not reported an error or data available?
@
class MyClass {
void request() {
auto reply = QNAM->request();
}
}
@Would I have to store the reply in a member var and call its close/abort method in MyClass() dtor?
-
Yes, if you want to explicitly close/abort.
-
[quote author="philk" date="1376647503"]And what happens to the slots connected to the signal if MyClass gets destructed? They are automatically disconnected, correct?[/quote]http://qt-project.org/doc/qt-5.1/qtcore/qobject.html#dtor.QObject