Skip to main content
Ben Nadel at InVision In Real Life (IRL) 2018 (Hollywood, CA) with: Brad Brewer
Ben Nadel at InVision In Real Life (IRL) 2018 (Hollywood, CA) with: Brad Brewer

Guillaume

Member since Oct 29, 2011

Recent Blog Comments By Guillaume

  • Using One Object Per Event Type With Publish And Subscribe (Pub/Sub)

    Posted on Oct 29, 2011 at 2:49 PM

    [sorry for the double post] Qt code sample class c : public QObject{ Q_OBJECT public: c(){ connect(this, SIGNAL(somethingdone()), this, SLOT(dosomethingelse()));   connect(this, SIGNAL(somethingdonewithparam(int x)), this, SLOT(dosomethingelsewithparam(int x)));   }   void dosomething()... read more »

  • Using One Object Per Event Type With Publish And Subscribe (Pub/Sub)

    Posted on Oct 29, 2011 at 2:42 PM

    This pretty much like the signal/slot system in Qt. Classes have signals and slots and you connect signals to slots. When the signal is emited(fired) it calls all the slots connected to it in an arbitrary order. It must feel somewhat awkward in javascript since the event mechanism is already somewh... read more »