PDA

View Full Version : Multiple completion



gruszczy
3rd March 2009, 23:19
There is cool completion functionality in Qt, which works very fine. I am looking, however, for a bit different kind of completions. I want to put some input into QLineEdit and keep completion suggestion even when I finish some word.

Let me give an example. Let there be words 'one', 'two' and 'three' in completer. I have written 'th' then completed it to 'three' and then I put 'o' and I would like to get again suggestion 'one'. Is it achievable in Qt? Is there any clever way I could achieve this, without too much coding?

caduel
3rd March 2009, 23:40
You have to intercept events/signals, detect word breaks and call a QCompleter instance yourself.

HTH