So your application has a central widget when you set the text editor?
If so, just keep the reference to the widget and set it again when needed.
You might also want to do the same for the text edit, so that you don't create a new one every time.
Cheers,
_
Bookmarks