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
qt:signals_and_slots [2011/04/01 11:09] mithatqt: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::connect(<pointer to emiter>, SIGNAL(<signal-name>(<parameter-type(s)>)), +QObject::connect(<pointer-to-emiter>, SIGNAL(<signal-name>(<parameter-type(s)>)), 
-                 <pointer to receiver>, SLOT(<slot-name>(<parameter-type(s)>)));+                 <pointer-to-receiver>, SLOT(<slot-name>(<parameter-type(s)>)));
 </code> </code>
  
qt/signals_and_slots.1301656154.txt.gz · Last modified: 2011/04/01 11:09 by mithat

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki