picca synchrotron-soleil fr wrote:
Use the public function cited above to connect your callback slot to your spin button's value_changed signal.<snip>Add a public function to your class: sigc::connection AxeWidget::connect_change_signal(const sigc::slot<void>& Slot) { return m_spinbutton.signal_value_changed().connect(Slot); }<snip> <code> void my_callback(void) { // do something here in response to spin button value change } AxeWidget myaxe; myaxe.connect_change_signal(sigc::ptr_fun(&my_callback)); </code> Hope this helps. Bob Caryl |