Questions about SIGNAL
Questions about SIGNAL
What is the difference between the CS_SIGNAL_1 macro and the CS_SIGNAL_2 macro? When I only want to use CS_SIGNAL_1, the compiler gives an error. This question has puzzled me for three days。
Re: Questions about SIGNAL
In order to declare a SIGNAL you must provide both CS_SIGNAL_1() and CS_SIGNAL_2() . Each macro is responsible for a different part of the signal implementation.
Barbara
- This link to our CS Overview documentation shows some sample macros and how to handle overloaded signals.
https://www.copperspice.com/docs/cs_overview/m_macros_metaobj.html#sample-cs-signal
- The following link provides detailed information about the Signal / Slot system.
https://www.copperspice.com/docs/cs_api/signals-slots-c.html
Barbara