PDA

View Full Version : How to create and delete QCompleter's same object multiple times?



Meena Solanki
21st August 2015, 15:06
Hello Everyone,

I don't know much more about QCompleter.
Can somebody help me to understand " How QCompleter exactly work"?
And how can I create and delete QCompleter's same object multiple times?


Thanks,

ChrisW67
21st August 2015, 21:24
QCompleter watches the widget it is attached to and looks up the value in the completer's model when the text changes. The completer then displays the result(s) in whatever format it has been configured to use.



And how can I create and delete QCompleter's same object multiple times?

Sorry, no idea what you mean.

Meena Solanki
24th August 2015, 06:21
Thanks for your reply,

Actually, I want a completer, set on Qlineedit.
Qlineedit should hold comma separated value like:
c,c++,php,python,qt........
when I enter c, the completer should give me list of both c and c++. On entering any of them(c/c++), then I want to enter "," and then "p".
So the completer should give me again two option(php and python).

That's why I'm asking to you that how to use QCompleter's same object many time?

ChrisW67
24th August 2015, 21:51
Have a look at this
http://www.mimec.org/node/304