Quote Originally Posted by smarinr View Post
my idea is that when I click on the QLineEdit, the text that is already show, disappear
This would mean your widget behaves inconsistently when receiving focus with Tab or with a click.

Not sure exactly what your trying to achieve but sounds like it might be better to put your code into a focus event method.