federem
federem

Reputation: 299

Promote a widget by the code

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

Answers (1)

user362638
user362638

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

Related Questions