Sorry for the bad English wysota,
I am having difficulty in "emitting a signal" of my class Thread for form1 where I want that it makes an update "refreshs".
/**
*Class Thread.h
*/
#ifndef THREAD_H
#define THREAD_H
#include <qthread.h>
class Thread : public QThread
{
public:
Thread();
virtual void refreshSql();
virtual void run();
virtual void stop();
};
#endif
/*******************************/
/*
* Thread.cpp
*/
#include "thread.h"
Thread::Thread(){}
void Thread::run()
{
......
/* My Code ==> emit Form1->dataTable->refresh();*/
.....
}
It would like in this method Thread::run() emit a signal for my QDataTable in form1 to be brought update, and I am not to implement this.
something it type.
emit Form1->dataTable->refresh();
Cris.
Bookmarks