[Qt-interest] emitting signal from another class

Atlant Schmidt aschmidt at dekaresearch.com
Thu Jul 15 14:44:50 CEST 2010


John:

> Ooops. Signals are protected. Only the class that defines the signal
> can emit the signal. What you need is a public member function that
> emits the signal.

There's an "escape clause", though, isn't there? By connect()ing one
signal to another, you can coerce a class to emit its signal in
response to another class's compatible signal, right?

As long as the connect() has access to the right objects from both
classes, you're in business.

Atlant


This e-mail and the information, including any attachments, it contains are intended to be a confidential communication only to the person or entity to whom it is addressed and may contain information that is privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the sender and destroy the original message.

Thank you.

Please consider the environment before printing this email.




More information about the Qt-interest-old mailing list