QTextEdit is a class from the Qt Toolkit which provides a widget that is used to edit and display both plain and rich text. It is optimized to handle large documents and to respond quickly to user input.
The official Qt documentation can be found here for Qt 4.8 and here for Qt 5.