[Qt-interest] QThread: infinite loops
Mandeep Sandhu
mandeepsandhu.chd at gmail.com
Fri Feb 25 05:42:57 CET 2011
On Fri, Feb 25, 2011 at 9:21 AM, Jason H <scorp1us at yahoo.com> wrote:
> To clarify, QThread gives you a default run() that does "nothing". Maybe it
> should have been a pure virtual, but I do believe the "nothing" that it does
> does include its own event loop.
I "think" it's not pure virtual because post QT 4.4, it has a default
implementation which calls exec().
This was there in one QT labs article (by Brad Hughes I think, don't
have the link handy)
CMIIW.
-mandeep
>
>
>
>
>
> ----- Original Message ----
> From: Jason H <scorp1us at yahoo.com>
> To: Nicholas Shatokhin <n.shatokhin at gmail.com>; qt-interest at qt.nokia.com
> Sent: Thu, February 24, 2011 10:47:58 PM
> Subject: Re: [Qt-interest] QThread: infinite loops
>
> You never implemented CFingerprintScanner::run(), which is the magical part of
> QThread that runs stuff in another thread.
>
>
>
>
>
> ----- Original Message ----
> From: Nicholas Shatokhin <n.shatokhin at gmail.com>
> To: qt-interest at qt.nokia.com
> Sent: Thu, February 24, 2011 9:26:48 PM
> Subject: [Qt-interest] QThread: infinite loops
>
> I'm trying to use libfprint, but It was written on C and I'm creating a
> layer
> between qt4 and libfprint.
> Because it need loop to scan finger and I don't want to freeze my program
> I used QThread. But my program still frozing.
> What's I doing wrong? My source are: http://ubuntuone.com/p/esE/
>
> And I tryed to start thread in mainwindow constructor, but window didn't
> showed, so I created button. How start scanning after showing window
> without freezing of it?
>
> --
> За використання революційного клієнта електронної пошти Opera:
> http://www.opera.com/mail/
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>
>
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>
>
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>
More information about the Qt-interest-old
mailing list