Hi
I made some functions in which I used some " while () { .. }".
When the programe started, the GUI died , howerver the others applications worked well ( a bit slow but worked ).
I know I have to use moveToThread, I wrote some functions but they didn't work
Have you got any idea? Thanx a lot
{
Q_OBJECT
....
protected:
void run(){ exec();}
}
Class QThreadEX:public QThread
{
Q_OBJECT
....
protected:
void run(){ exec();}
}
To copy to clipboard, switch view to plain text mode
File ui:
void test_thread:: on_pushButton_clicked(){
QThreadEx * confThread = new QThreadEx()
config conf;
confThread->start;
conf.moveToThread(confThread);
connect(confThread, SIGNAL(started()),conf, SLOT(conf.test());
}
void test_thread:: on_pushButton_clicked(){
QThreadEx * confThread = new QThreadEx()
config conf;
confThread->start;
conf.moveToThread(confThread);
connect(confThread, SIGNAL(started()),conf, SLOT(conf.test());
}
To copy to clipboard, switch view to plain text mode
Bookmarks