class Window { public slots: void setValue(int); signals: void buttonClicked();}class Handler{ signals: void valueChanged(int); public slots: update();}
class Window { Handler * handler; void f() { ...handler->setValue(10);... } void setValue(int);}class Handler{ Window * window; void setValue(int value) { ...window->spinBox->setValue(value);... }}