Customize the QLineEdit by paintEvent(), the cursor can't follow the text.

Printable View