QTextEdit :: setTextFormat (Qt :: LogText) no longer exists, what else can I use to register?

I need a text logger in my C ++ application, QTextEdithad this function before Qt 3.3, but unfortunately it was removed. Is there an alternative I could use?

+5
source share
2 answers

Two options:

  • You can just use the QTextEdit::setReadOnly(true)old Qt::LogTextflag basically just put QTextEditread-only mode in the text text.
  • Or use the Q3TextEditQt4 compatibility class for old Qt3 QTextEdit.
+4
source
+3

All Articles