There are 2 QML types of the text edit. They're TextEdit and TextArea. I wonder which one is better? What should I use?
CodePudding user response:
The description for TextArea
should be enough to work this out:
TextArea
is a multi-line text editor.TextArea
extendsTextEdit
with a placeholder text functionality, and adds decoration.
Hence, if "has more functionality" is your definition of "better", that would be TextArea
.
Of course, it all depends on whether the added functionality is necessary since added functionality is rarely without some cost. As to which one you should use, that really depends on your own needs, so it's hard to make a definitive answer to that part of your question.
You should investigate whether the added functionality is needed in your case.
CodePudding user response:
textedit is best for me you can use text area for some place