Uh oh!
There was an error while loading. Please reload this page.
Touch up documentation on Wt::WSignal - #196
Conversation
limitedAtonement
commented
Dec 13, 2022
By the way, it looks like there's no way to disconnect from a other->widget_changed().connect([](){std::cout << "bark\n";});the only way for that signal handler to get disconnected is if |
RockinRoel
commented
Dec 13, 2022
The slot isn't really automatically disconnected when the |
limitedAtonement
commented
Dec 13, 2022
Thank you for your pointers! I just noticed this undocumented |
RockinRoel
commented
Dec 13, 2022
That |
The documentation was missing qualifications concerning under which conditions the signal would NOT be disconnected. That is, for instance if you pass a lambda function object (which doesn't inherit from
Wt::Core::observable),Wt::WSignalhas no way to unregister or disconnect the signal.