Signal not found / thread communication
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
Code:
...
signals:
void listItemUpdate(const QByteArray& ba);
...
private slots:
...
private:
worker InvThread;
main::main()
...
connect(&InvThread,
SIGNAL(listItemUpdate
(const QByteArray ba
)) ,
this ,
SLOT(RlistItemUpdate
(const QByteArray ba
)));
Re: Signal not found / thread communication
Code:
connect(&InvThread,
SIGNAL(listItemUpdate
(const QByteArray)) ,
this ,
SLOT(RlistItemUpdate
(const QByteArray)));
Re: Signal not found / thread communication
You're calling connect() with named parameters. This simply isn't right.
Re: Signal not found / thread communication
Thank guy's
It was a bit late last night!
you have the answer already here:
http://www.qtcentre.org/faq.php?faq=...alslot_nodebug
Cheers
Chris
Re: Signal not found / thread communication
Are you sure you don't want to sent a const reference instead of a const bytearray?