Hi,
I would relocate a widget. I’ve thought I can realize this if I’ll clear the parent widget or remove the widget from the parent one and then I’ll add this widget again to the parent one on another place, but this doesn’t work.
VLayout panel1 = new VLayout();
VLayout panel2 = new VLayout();
panel1.addMember(panel2);
update1(){
panel1.clear();
panel1.addMember(panel2); // --> result: empty panel
}
//OR
update2(){
panel1.removeChild(panel2);
panel1.addMember(panel2); // --> result: empty panel
}
How can I solve this? What must I consider?
Thanks beforehand.