[Qt-interest] QCompleter: both popup and inline completion

Martin Herrmann martin at famherrmann.de
Sat Jul 25 23:10:31 CEST 2009


Hi,

I have a QComboBox (editable) and would like to use a completer that
does both Popup and Inline completion. But as far as I can tell,
QCompleter supports only one of the completion modes. Is there a way to
get both at the same time?

For example, if the list contains the entries "Alice", "Bob", "Brad" and
"Brian", and the user starts typing a "B", the text should be completed
to "Bob" with "ob" selected (as with InlineCompletion), and a list
containing "Bob", "Brad" and "Brian" should be displayed (as with
PopupCompletion).

If I remember correctly, Qt3's QComboBox behaved this way, although I am
not sure about that (and it doesn't seem to be the case with Qt4's
Q3ComboBox).

I am using Qt 4.3.4, but I can upgrade to a newer verison if necessary.


Martin





More information about the Qt-interest-old mailing list