PDA

View Full Version : Inheriting from QCompleter or something diferent



been_1990
27th December 2012, 20:37
Can I change QCompleter::completionModel() to use a model I populate according to my calculations on what are matches?
I want to use fuzzy completion, but using a qlistview has been hard. Is there an easier way?

EDIT: Ok, I can set the model, but I want all the items inside the model to be shown, can I subclass it and change the classes behavior ?

wysota
28th December 2012, 22:16
QCompleter uses filtering to do its job. If you don't want filtering, don't use QCompleter but rather provide your own completing component.