qt:signals_and_slots
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
qt:signals_and_slots [2010/12/09 15:13] – [Making connections] mithat | qt:signals_and_slots [2011/04/01 11:10] (current) – mithat | ||
---|---|---|---|
Line 6: | Line 6: | ||
A connection between a signal and a slot is made as follows: | A connection between a signal and a slot is made as follows: | ||
<code cpp-qt> | <code cpp-qt> | ||
- | QObject:: | + | QObject:: |
- | {pointer to receiver}, SLOT({slot-name}({parameter-type(s)}))); | + | <pointer-to-receiver>, SLOT(<slot-name>(<parameter-type(s)>))); |
</ | </ | ||
- | The emiter emits the signal '' | + | The emiter emits the signal '' |
Example: | Example: | ||
Line 34: | Line 34: | ||
Signals may connect to multiple slots. Multiple signals may also connect to a single slot. | Signals may connect to multiple slots. Multiple signals may also connect to a single slot. | ||
- | In the case of multiple | + | In the case of multiple |
===== Writing your own slots ===== | ===== Writing your own slots ===== |
qt/signals_and_slots.txt · Last modified: 2011/04/01 11:10 by mithat