Hi all!

I saw how to define and emit signals but it is not quite working. I need to know if there is a problem to connect a slot to a signal from another class and emited by that other class.

So, I have a base class where my gui is handled and a client class where I do some tcp things.

on the client.h I simple define the signal like this:

signals:
void data_READY();

then on the base class I do:

Client *client = new Client();
connect(not_sure_what_to_set_here, SIGNAL(client->data_READY()),this,SLOT(login_data()));

1-Is it allowed to connect slots to signals from other classes?

if yes

2-What would be the first parameter on the connect?