[Qt-interest] Is it sensible to call "delete this; " at the end of a QThread's run method?
Chris Vickery
chrisinajar at gmail.com
Mon May 30 07:50:08 CEST 2011
Well, the gui thread way you described will work, but I guess my question to
you would be: Why? Why do it the complicated unsupported potentially
dangerous way? There are no functional differences between the two design
paradigms, othe than one being recognizable and maintainable by other
developers... There are a million ways to do anything, why not do it the
sane way?
The is sort of a design philosophy answer as opposed to a solid API answer,
but I hope it helps.
In short: Yes. That will work... but don't.
Chris
On May 29, 2011 9:30 PM, "K. Frank" <kfrank29.c at gmail.com> wrote:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110530/44021805/attachment.html
More information about the Qt-interest-old
mailing list