Yes, it is allowed to connect slots and signals across class objects.
The first parameter is the sender of the signal, in your case that would be the object "client".
Example:
Qt Code:
connect(client, SIGNAL(data_READY()), this, SLOT(login_data()));To copy to clipboard, switch view to plain text mode
Note also that SIGNAL is a macro to instruct the moc. The SIGNAL macro only takes the name of a function, not a pointer to a function.
Bookmarks