ruehlchr
2nd November 2010, 02:52
Dear All,
I'm new to the forum nice to be here !
My nasty problem I fight with:
(thread 1 main) - (thread 2 worker)
worker read an external device and send QByteArray back to the main-thread.
Therefore I create a signal in the worker and slot in the main with a connect(&thread,..).
I test the signal/slot within the worker-thread to see if the emit works // yes fine
but the main thread give me a
Object::connect: No such signal worker::listItemUpdate(const QByteArray ba) in reader.cpp:25
any hint is highly appreciated.
Chris
class worker : public QThread
...
signals:
void listItemUpdate(const QByteArray& ba);
class main : public QMainWindow
...
private slots:
void RlistItemUpdate(const QByteArray ba);
...
private:
worker InvThread;
main::main()
...
connect(&InvThread, SIGNAL(listItemUpdate(const QByteArray ba))
, this , SLOT(RlistItemUpdate(const QByteArray ba)));
I'm new to the forum nice to be here !
My nasty problem I fight with:
(thread 1 main) - (thread 2 worker)
worker read an external device and send QByteArray back to the main-thread.
Therefore I create a signal in the worker and slot in the main with a connect(&thread,..).
I test the signal/slot within the worker-thread to see if the emit works // yes fine
but the main thread give me a
Object::connect: No such signal worker::listItemUpdate(const QByteArray ba) in reader.cpp:25
any hint is highly appreciated.
Chris
class worker : public QThread
...
signals:
void listItemUpdate(const QByteArray& ba);
class main : public QMainWindow
...
private slots:
void RlistItemUpdate(const QByteArray ba);
...
private:
worker InvThread;
main::main()
...
connect(&InvThread, SIGNAL(listItemUpdate(const QByteArray ba))
, this , SLOT(RlistItemUpdate(const QByteArray ba)));