Very nice!
Is the "completed" signal emitted in all cases of task end? I.e. it is also emitted when the task failed?
E.g. if you look at QNetworkReply it has a finished() signal that will always be emitted, no matter if the operation succeeded or failed.
The application programmer can therefore be sure that connecting to this signal will always be enough to catch the end of the operation.
Another example for that pattern in Qt is QProcess. It will also always emit the finished() signal, indepent of whether the process exited cleanly, with an error or crashed.
Cheers,
_





Reply With Quote


Bookmarks