setPlainText does not
-
The attached C++ code gets a QString "line" which includes control characters.
Should "setPlainText" remove the control characters or am I reading the documentation wrong?line = stream.readLine(); TRACE_TextEdit->setPlainText(line); -
No,
setPlainTextonly means that the input text is not interpreted as html and will not be formatted accordingly, so if you have e.g.<br>in your string it will display these characters as is and not change that to an actual line break.If you need to remove some unwanted characters from the string you have to do it on your own.