PDA

View Full Version : QCompleter on multiple columns



akiross
9th November 2008, 17:15
Hello,
I'm need to build a completion which try to complete one of 2 columns of a given model. When a match is found, the completed text should be a composition of the columns values in the matching row.

For example, having column name and surname with these records:
Foo|Bar
Baz|Jay

Writing "Ba" in a text field, should match both records, and after selecting the right one, the text should be a composition of the two, like "Foo Bar".

Should I subclass QCompleter or are there better ways?
Thanks