Justin Johansson:
> You will observe that "public slots" is not valid C++.  Qt's meta-object 
> compiler does a preprocessing of the MyWidget class so that methods 
> declared under the "public slots:" scope are subject to some kind of 
> reflection or introspection that enables events (signals) to be delegate 
> to the respective methods.

More info about QT signals and slots:
http://doc.trolltech.com/4.6/signalsandslots.html

But if you look for a solution integrated in the D2/D3 language, then JavaFX 
bind and triggers seem nice (this stuff is useful for GUIs):
http://java.sun.com/javafx/1/tutorials/core/dataBinding/

Bye,
bearophile

Reply via email to