Autocomplete with combobox

asked 2013-04-25 14:25:07 +0800

Tristan2583 gravatar image Tristan2583
13 3

Hi folks!

I want to implement the autocomplete function for a combobox. In particular i want to always show ( as a suggestion in the drop-down list of the combobox ) the list of items of the combobox that match with the value typed by the user. Another issue is that I can't load the complete list of item in the model because is a huge amount of data. Instead I want to load each time only a small number of rows. I've read the developer reference and I understand that I have to write a class than extends from a ListModel ( AbstractListModel or ListModelList fits well for my purpose ) and implements ListSubModel. I've done this without so much problems. Well.. Now I have another problem. I can show only a tot number of rows in the drop down of the combobox. If there are more than tot number of item matching with the value of the combobox i can't show in anyway. Someone has some suggestions?

delete flag offensive retag edit
Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools




Asked: 2013-04-25 14:25:07 +0800

Seen: 21 times

Last updated: Apr 25 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More