how can i make a Custom QLineEdit? [duplicate]

  pyqt, pyside, python

enter image description here

i wanna make a LineEdit like these ,should i use the QStyle for this task and how can i do that ? ,
(the right icons appear just when the QLineEdit conatains a text ,if the QLineEdit is empty there is just the left icon )
enter image description here

Source: Python Questions

LEAVE A COMMENT