QLineEdit offers 4 EchoMode states.
When typing a password, QLineEdit::Password is suitable because it displays a circle (or something similar) instead of the typed characters.
What I want to do is to hide all characters, like with QLineEdit::Password, but the last typed character is visible for a few seconds before it is replaced by a circle. This allows the user to check that they are using their password correctly.
Here is my solution. The last character is hidden after 500 milliseconds.
lineeditvanishingcharacters.cpp
lineeditvanishingcharacters.h