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?
相关问题
- Sorting 3 numbers without branching [closed]
- QML: Cannot read property 'xxx' of undefin
- How to compile C++ code in GDB?
- Why does const allow implicit conversion of refere
- thread_local variables initialization
相关文章
- ubuntu20.4中c#通过c++库调用python脚本
- Qt槽函数自动执行多遍
- how do I log requests and responses for debugging
- Class layout in C++: Why are members sometimes ord
- How to mock methods return object with deleted cop
- Which is the best way to multiply a large and spar
- C++ default constructor does not initialize pointe
- Selecting only the first few characters in a strin
Two options:
QTextEdit::setReadOnly(true)
, the oldQt::LogText
flag basically just put theQTextEdit
in plain-text read-only mode.Q3TextEdit
, the Qt4 compatibility class for the old Qt3QTextEdit
.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.