Problems with Open-Source Downloads read https://www.qt.io/blog/problem-with-open-source-downloads and https://forum.qt.io/post/638946
append text two different interpretations
AnneRanch last edited by
Both QText and QPlainTextEdit have methods to " append ( text)"
However QText appends to the existing text and QPlainTextEdit
creates new text and , in my case, adds new line to the widget.
I have copied / using 3rd party files using BOTH classes, hence , appending - as adding new line of text - is not the same procedure.
This is NOT A BIG issue , I can change the classes.
I was just curious if there is an way to make QText behave same as QPlainTextEdit - append new line instead of appending to existing text.
I neither know QText nor has QPlainTextEdit a function named 'append()'.
artwaw last edited by artwaw
But I could not find (nor I ever heard of) QText. QPlainTextEdit also doesn't have that method.
If OP has QString in mind though, its append() method adds to the string as it is supposed. So, both work as intended.
JonB last edited by
appendPlainText(). All the methods discussed are for adding a "paragraph". How this relates to whatever the question is I do not know.
Pl45m4 last edited by
QTextEdit... and it has an
append(QString)-function as well :)