Project

General

Profile

Actions

Bug #5734

closed

Signals are lost when widget moved to another WQApplication

Added by isgursoy yavuz almost 7 years ago. Updated almost 7 years ago.

Status:
Rejected
Priority:
Urgent
Assignee:
Target version:
Start date:
05/24/2017
Due date:
% Done:

0%

Estimated time:

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

Application.hpp (1.32 KB) Application.hpp isgursoy yavuz, 05/24/2017 06:44 PM
Application.cpp (11.1 KB) Application.cpp isgursoy yavuz, 05/24/2017 06:44 PM
Actions #1

Updated by isgursoy yavuz almost 7 years ago

I get "Wt internal error; code: undefined, description: Wt3_3_7.WSpinBox is not a constructor" under the new application.

Actions #2

Updated by Roel Standaert almost 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

Actions

Also available in: Atom PDF