I use .setEnabled(False) to disable a line edit so it cannot be used, and it greys out the text inside the line edit. Now, I want to "hide" the greyed out text. I do not want to change the contents of the line edit and I do not want to hide the line edit box. I just want to display an empty box.
If using "EchoMode" is the way to go (it may not be), could someone show me the syntax/example of how to blank out the line edit and then turn it back on to be able to display its contents? Something like (I think):
self.ui.total.setEchoMode(???????)
self.ui.total.setEchoMode(???????)
To copy to clipboard, switch view to plain text mode
Added after 22 minutes:
I think I found the answer (appears to do what I want).
self.ui.total.setEchoMode(QLineEdit.NoEcho)
To copy to clipboard, switch view to plain text mode
But if someone has a better way, please let me know. thanks for looking
Bookmarks