Bo Peng wrote:
BTW, it would be nice if the search field did some 'search-as-you-type'. Actually, we could get rid of the search button.I am doing this. I think I need to extend QLIneEdit to display "search ..." at first, and clear the text when searchLE gets focus.
no, you could connect to the textEdited(const QString &) signal and subset the items and update the treewidget
better is use qt's model/view framework ...