[PyQt] Can QLineEdit do this?

Dirk Reisnauer dirk.reisnauer at denviso.de
Tue May 8 13:40:55 BST 2012


Perhaps this thread can help you

 

http://python.6.n6.nabble.com/insert-search-image-in-the-QlineEdit-td1923992
.html

 

 

Von: pyqt-bounces at riverbankcomputing.com
[mailto:pyqt-bounces at riverbankcomputing.com] Im Auftrag von zw g
Gesendet: Dienstag, 1. Mai 2012 06:40
An: pyqt at riverbankcomputing.com
Betreff: [PyQt] Can QLineEdit do this?

 

Dear List,

 

 

Is there any method to customize QtGui.QLineEdit widget or other more
suitable widget to make it like the search box of iTunes?

 

I would like to achieve the effect like that, with a magnifier icon(and a
drop down arrow)in font of the search text area.

When you click on the icon, it will pop up a menu which let you narrow the
search range.

 

The following picture demos what i exactly want it to be:

 

Inline image 4

 

 

Any suggestion would be appreciated.

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20120508/29836309/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 16748 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20120508/29836309/attachment-0001.png>


More information about the PyQt mailing list