I think you have to use QCompleter::setWidget() and then probably do something with QTextEdit But I'd wait a little until Qt4.2 comes to a more stable state.