[Qt-interest] QThread: infinite loops

Jason H scorp1us at yahoo.com
Fri Feb 25 04:47:58 CET 2011


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



      



More information about the Qt-interest-old mailing list