How to change row height in QTextTable

it seems that you can use the setHTML(QString) or insertHTML(QString) functions to insert a stylesheet. When using this function with a style sheet, the style sheet will only apply to the current block in the document. In order to apply a style sheet throughout a document, use QTextDocument::setDefaultStyleSheet() instead. ref: http://harmattan-dev.nokia.com/docs/platform-api-reference/xml/daily-docs/libqt4/qtextedit.html#insertHtml appart from using shims….according … Read more

QTextEdit with different text colors (Qt / C++)

Just a quick addition: an alternative to generating the html yourself, if you’re populating the text box programatically, is to use textEdit->setTextColor(QColor&). You can create the QColor object yourself, or use one of the predefined colours in the Qt namespace (Qt::black, Qt::red, etc). It will apply the specified colour to any text you add, until … Read more

QTextEdit vs QPlainTextEdit

From Qt’s documentation: QPlainTextEdit is an advanced viewer/editor supporting plain text. It is optimized to handle large documents and to respond quickly to user input. QPlainText uses very much the same technology and concepts as QTextEdit, but is optimized for plain text handling. QPlainTextEdit works on paragraphs and characters. A paragraph is a formatted string … Read more