Re: [Interest] QThreads: There's no one way to do it right! :)

2013-01-26 Thread K. Frank
Hello Mandeep and Friends! On Wed, Jan 23, 2013 at 2:42 AM, Mandeep Sandhu mandeepsandhu@gmail.com wrote: First I thought I was doing it right Then they said you're doing it wrong (http://blog.qt.digia.com/blog/2010/06/17/youre-doing-it-wrong/) Then I thought I _finally_ got it right!!

Re: [Interest] QThreads: There's no one way to do it right! :)

2013-01-23 Thread alexander golks
Am Wed, 23 Jan 2013 11:56:55 +0400 schrieb Konstantin Tokarev annu...@yandex.ru: My rule of thumb is that, if you're doing a simple but compute intensive task where you don't want communication via signal/slots (probably thats what the author of the last post meant by not needing event

Re: [Interest] QThreads: There's no one way to do it right! :)

2013-01-23 Thread Konstantin Tokarev
23.01.2013, 12:29, alexander golks a...@golks.de: Am Wed, 23 Jan 2013 11:56:55 +0400 schrieb Konstantin Tokarev annu...@yandex.ru:  My rule of thumb is that, if you're doing a simple but compute  intensive task where you don't want communication via signal/slots  (probably thats what the

Re: [Interest] QThreads: There's no one way to do it right! :)

2013-01-23 Thread Sze Howe Koh
On 23 January 2013 16:30, Konstantin Tokarev annu...@yandex.ru wrote: 23.01.2013, 12:29, alexander golks a...@golks.de: but if you connect them queued, then they are executed in the thread, or not? Of course no (unless you are using moveToThread(this) which you shouldn't). @Alexander: No. To

Re: [Interest] QThreads: There's no one way to do it right! :)

2013-01-23 Thread Bo Thorsen
Den 23-01-2013 08:42, Mandeep Sandhu skrev: First I thought I was doing it right Then they said you're doing it wrong (http://blog.qt.digia.com/blog/2010/06/17/youre-doing-it-wrong/) Then I thought I _finally_ got it right!! Now they say You were not doing so wrong

Re: [Interest] QThreads: There's no one way to do it right! :)

2013-01-23 Thread Mandeep Sandhu
So if someone just says he prefers one approach over all the others, it's because he doesn't fully understand the pros and cons for the choices. And that's why your question is wrong. There is no right choice. Which fortunately for you is exactly what you had in the mail subject :)

Re: [Interest] QThreads: There's no one way to do it right! :)

2013-01-23 Thread André Somers
Op 23-1-2013 13:08, Bo Thorsen schreef: Den 23-01-2013 08:42, Mandeep Sandhu skrev: First I thought I was doing it right Then they said you're doing it wrong (http://blog.qt.digia.com/blog/2010/06/17/youre-doing-it-wrong/) Then I thought I _finally_ got it right!! Now they say You were

Re: [Interest] QThreads: There's no one way to do it right! :)

2013-01-23 Thread Bo Thorsen
Den 23-01-2013 15:07, André Somers skrev: Op 23-1-2013 13:08, Bo Thorsen schreef: Den 23-01-2013 08:42, Mandeep Sandhu skrev: First I thought I was doing it right Then they said you're doing it wrong (http://blog.qt.digia.com/blog/2010/06/17/youre-doing-it-wrong/) Then I thought I

Re: [Interest] QThreads: There's no one way to do it right! :)

2013-01-23 Thread Jason H
Generally, I never need more than the fundamental types so signals/slots work. You also have to be careful of your database and database driver. Not all are multi-thread friendly, and Qt may impose additional constraints. From: Mandeep Sandhu

[Interest] QThreads: There's no one way to do it right! :)

2013-01-22 Thread Mandeep Sandhu
First I thought I was doing it right Then they said you're doing it wrong (http://blog.qt.digia.com/blog/2010/06/17/youre-doing-it-wrong/) Then I thought I _finally_ got it right!! Now they say You were not doing so wrong (http://woboq.com/blog/qthread-you-were-not-doing-so-wrong.html)!! :D

Re: [Interest] QThreads: There's no one way to do it right! :)

2013-01-22 Thread Konstantin Tokarev
23.01.2013, 11:42, Mandeep Sandhu mandeepsandhu@gmail.com: First I thought I was doing it right Then they said you're doing it wrong (http://blog.qt.digia.com/blog/2010/06/17/youre-doing-it-wrong/) Then I thought I _finally_ got it right!! Now they say You were not doing so wrong