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?
Two options:
QTextEdit::setReadOnly(true)
, the
old Qt::LogText
flag basically just
put the QTextEdit
in plain-text
read-only mode.Q3TextEdit
, the Qt4
compatibility class for the old Qt3 QTextEdit
.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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With