On both the QEvent::Enter and QEvent::FocusIn of the QLineEdit, I am calling selectAll(), but it isn't working as desired...

Everything gets selected ( because of QEvent::FocusIn, I think), but on the mouse down or something the selectAll is lost.

Any thoughts on how to safely do a selectAll so I can simply type over the existing value?