Stop all process on closing Dialog window
-
Hello
I have created a Dialog window and have called methods in its constructor.
I wanted to stop all the running process going on with the dialog i.e stopping methods to perform its task on closing window.
Please suggest me for this.
-
Hi,
What methods ? What are they doing ? Did you make them stoppable ?
-
It is not quite clear, what about your question.
if "how to detect when dialog is closing" then you can use
@void QDialog::closeEvent(QCloseEvent * e)@
for that.
if "how to stop methods" then
[quote author="SGaist" date="1394656519"]Hi,
What methods ? What are they doing ? Did you make them stoppable ?[/quote] -
Hello SGaist and qxoz,
This dialog box has progress bar and cancel button.
On calling this dialog box , methods are called in its constructor for getting url list from the search query.
When all url list will be fetched, I need page source for these urls.
This uses QNetworkAccessManager for getting page source.
Currently methods are running even if I close the dialog.
I want them to get stop on close.