Reputation: 299
I would like to know how to promote a widget in another by the code. I know it is possible using the Designer but I want the widget to be dynamic, so I have to change it in the code.
Upvotes: 2
Views: 1219
Reputation:
Delete the old widget, then create the new widget and place it where the old one was.
You cannot keep the old object and just change its class.
Upvotes: 5