Signals are lost when widget moved to another WQApplication
Widget signals are only valid under the first Application. When I remove widget from layout of first application then add to another layout that belongs to different application, all signals are lost.
Updated by Roel Standaert over 4 years ago
- Status changed from New to Rejected
Moving widgets between WApplications is not supported by Wt. We've never even tried to do it, and Wt assumes in a lot of places that widgets are not moved between WApplications. It would probably require a lot of effort to change this.
The way to "move" a widget from WApplication to WApplication is simply to store the way the original widget is configured, remove that widget, and create a new widget. Note that in order to modify the widget tree of an application, you need to grab its update lock.
So, sorry, this won't be fixed, but I hope my explanation helps.