# QTextEdit vs QPlainTextEdit ###### tags: `problems`、`Qt5(C++)` + [參考](https://stackoverflow.com/questions/17466046/qtextedit-vs-qplaintextedit) the difference is that QPlainTextEdit is optimized for handling plain text, and can be used even with very large plain text files. Also the way text is formatted is simpler. If you plan to support only plain texts, then QPlainTextEdit is the right choice.