[Qt-interest] How to implement a `Stop Button' ?
Aaron Lewis
aaron.lewis1989 at gmail.com
Fri May 14 05:06:50 CEST 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
> You will need to push your searching for the strings task onto its own
> thread. There are several ways to do this. The Qt Documentation goes into
> detail on how to do this. Some ideas would be the following:
That looks good .
> Hook up some signals/slots between the gui button and the task so that when
> the user clicks the "Stop" button a signal is sent to the thread that marks
> it for cancelation.
Yeah , right.
> When the task is completed, signal the mail thread to set the GUI back to a
> proper state.
Thanks Mike ;-)
- --
Best Regards,
Aaron Lewis - PGP: 0x4A6D32A0
FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0
irc: A4r0n on freenode
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkvsvkkACgkQvf41sEptMqDj5ACffvRtqK6du/rAg5xTZxymy1tA
DpsAn1YsGhFqRMa82f0Cuno/5NyJFjcc
=CCm0
-----END PGP SIGNATURE-----
More information about the Qt-interest-old
mailing list