mmmm... Not very clear.
Do you mean you've created some sort of graph (presumably in a QGraphicsView) and at some point you add a QTextEdit to the scene (a bit crazy)? Or do you add it in a layout close to the view (recommended)? Or is it something else?

edit : seeing the "Qt3" tag I suppose you're using QCanvas instead but I'm pretty sure the above still stand.