Change name of a widget which gets created in runtime

Hello,

how can i set the name of a widget i create in runtime?