User Tools

Site Tools


qt:signals_and_slots

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
qt:signals_and_slots [2010/12/09 14:41] – [Signals and slots] mithatqt:signals_and_slots [2010/12/09 15:01] – [Multiple connections] mithat
Line 1: Line 1:
 ====== Signals and slots ====== ====== Signals and slots ======
  
-Communication between objects in Qt is typically handled by a signal and slots system. Signals are emitted by objects in response to user interaction or other stimuli, and these signals are received by slots in other objects. Connections are made between signals and slots by the programmer using some simple non-C++ code foo. The behavior associated with a received signal is determined programatically. Lots of Qt classes have predefined signals and slots. You can implement new signals and slots in classes you derive yourself.+Communication between objects in Qt is typically handled by a signal and slots system. Signals are emitted by objects in response to user interaction or other stimuli, and these signals are received by slots in other objects. Connections are made between signals and slots by the programmer using some Qt macro foo. The behavior associated with a received signal is determined programatically. Lots of Qt classes have predefined signals and slots. You can implement new signals and slots in classes you derive yourself.
  
 ===== Making connections ===== ===== Making connections =====
Line 26: Line 26:
  
 ===== Multiple connections ===== ===== Multiple connections =====
-Signals may connect to multiple slots. (FIXME Is the reverse true?)+Signals may connect to multiple slots. Multiple signals may also connect to a single slot.
  
-If a signal connects to multiple slots, the execution order of the slots is undefined.+In the case of multiple connection, the execution order of the slots or signals is undefined.
  
 ===== Writing your own slots ===== ===== Writing your own slots =====
Line 35: Line 35:
 ===== Writing your own signals ===== ===== Writing your own signals =====
 A number of signals are defined for many of the classes that make up Qt. It is also possible to implement new (or override existing :?:) signals.  A number of signals are defined for many of the classes that make up Qt. It is also possible to implement new (or override existing :?:) signals. 
 +
 +===== Examples =====
 +Some examples are [[signal slot examples|here]].
 +
qt/signals_and_slots.txt · Last modified: 2011/04/01 11:10 by mithat

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki