PDA

View Full Version : hide text in textedit



prabhatjha
2nd December 2015, 08:45
how to hide text in textedit in qt....

Vikram.Saralaya
2nd December 2015, 12:43
If line edit is an option you can use QLineEdit::SetEchoMode(QLineEdit::NoEcho) which is in general used to hide passwords.

In QTextEdit the only option is to manually store the text to be hidden somewhere and delete it from textEdit. When you want to show it, paste it back.

Qiieha
2nd December 2015, 13:20
In QTextEdit the only option is to manually store the text to be hidden somewhere and delete it from textEdit. When you want to show it, paste it back.

For example:


bool QObject::setProperty(const char * name, const QVariant & value)
QVariant QObject::property(const char * name) const