I am trying to create a custom widget, which will behave similar to QComboBox with few modifications. I would like it to have search as you type feature, so that while user types in popup view would remain open and first match would get selected. This is similar to font selection widget in OpenOffice writer. I've come really close to acomplishing my goal by using this example:

https://idlebox.net/2010/apidocs/qt-...lesuggest.html

where I replaced google search with the search against a set dictionary. Then I added button to the lineEdit as described here:

http://labs.qt.nokia.com/2007/06/06/...-clear-button/

While I've achieved desied behavior I can not get the button to look exactly like down arrow as appears in the native QComboBox. So, after this long introduction my question is this: How can I use some Qt icon that is used in one of the standard widgets in my custom widget. In my particular case I need to have downarrow icon in a QToolButton that I've added to my QLineEdit. Also, I've tried to use 1downarrow.png icon that is found in /usr/share/icons/crystalsvg/16x16/actions/ folder, but I had to add to my resource file. I suspect that there is a better way to do it, but I could nto figure it out.

Any help would be greatly appreciated. Thanks in advance for any suggestions.