Execute a Job on a QThread. once or multiple times. More...
#include <QxtJob>
Inherits QObject.
QxtJob allows easily starting jobs on different threads.
exec() will ask for the QThread to run the job on. The Qthread needs an event loop. since version 4.4, QThread has a non pure run function with a default event loop, allowing easy deployment of jobs.
default constructor
Warning: The destructor joins.
execute the Job on onthread
block until the Job finished
Note that the current thread will be blocked.
If you use this, you better be damn sure you actually want a thread.
Maybe you actualy want to use QxtSignalWaiter.
This function is called by QxtJob.
reimplemented this function to do useful work.
Returning from this method will end the execution of the job.
| Copyright © 2007 Qxt Foundation | Trademarks | Qt Extension Library 0.4 |