Hi,
Why you just not use QThread. For example:
class myBigProcess
: public QThread{
Q_OBJECT
public:
explicit myBigProcess
(QObject *parent
= 0);
void run();
};
class myBigProcess : public QThread
{
Q_OBJECT
public:
explicit myBigProcess(QObject *parent = 0);
void run();
};
To copy to clipboard, switch view to plain text mode
myBigProcess
::myBigProcess(QObject *parent
) :{
}
void myBigProcess::run()
{
///Massive process here
}
myBigProcess::myBigProcess(QObject *parent) :
QThread(parent)
{
}
void myBigProcess::run()
{
///Massive process here
}
To copy to clipboard, switch view to plain text mode
Then you can do:
myBigProcess *MBP;
MBP = new myBigProcess(this);
MBP->start(); //This will call run();
myBigProcess *MBP;
MBP = new myBigProcess(this);
MBP->start(); //This will call run();
To copy to clipboard, switch view to plain text mode
QThread has signals to know when the run() finished.
Carlos.
Bookmarks