Give all you need to the LineEdit,let it give you answers.
such as what's the weather like in chengdu?
such as what's the weather like in chengdu?
but the first things I need to consider in programming is the result ranking
two factors for the result ranking
1.DateTime.the later the Matching words putted in the historyList,the more frontly will be it shows.
2.Frequence.the More times that you queryed for a same word ,The more frontly ........
btw,I really indebted to Arora(is opensource webkit based browser)'writer for his work.With his clear contributed code, it makes me benefit from it,especially how to re-construct QCompleter supporting filter and sorting with matching algorithm in post-facto.Actually what attracted me most in Arora's feature is Adblock.Althought it's not perfect,it's a really interesting way to block ads.