Hi,
I need a text logger in my C++ application, QTextEdit used to have this feature until Qt 3.3 but unfortunately it has been removed. Is there an alternative that I could use?
Tanks for your help!
Hi,
I need a text logger in my C++ application, QTextEdit used to have this feature until Qt 3.3 but unfortunately it has been removed. Is there an alternative that I could use?
Tanks for your help!
Two options:
QTextEdit::setReadOnly(true)
, the
old Qt::LogText flag basically just
put the QTextEdit in plain-text
read-only mode.It seems to me that QPlainTextEdit is what you are looking for.
It is optimized for dealing with plain text data and can be can put it in read only.