PDA

View Full Version : QCompleter with QTextEdit



ePharaoh
19th July 2006, 11:48
I have been able to use QCompleter with QLineEdit, but how do I use it with QTextEdit?

According to this (http://lists.trolltech.com/qt4-preview-feedback/2006-07/msg00038.html) and this (http://doc.trolltech.com/4.2/qcompleter.html), it should be possible. But how?

I can probably dig deep into the code and find out, but is there an easy way to do it?

Thanks!

wysota
19th July 2006, 13:03
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.