Bug #5734
closedSignals are lost when widget moved to another WQApplication
0%
Description
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.
Files
Updated by isgursoy yavuz over 7 years ago
I get "Wt internal error; code: undefined, description: Wt3_3_7.WSpinBox is not a constructor" under the new application.
Updated by Roel Standaert over 7 years ago
- Status changed from New to Rejected
Hi,
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.
Regards,
Roel