Feature search component

I finally got the solution to search function. The solution is adding a search category, and the search text input only show when user select this category.
When user drag component into schematic, qucs will search all the components to find which component is right. I have to say this solution is not very good, quite waste resource.