Double the font size in QTextEdit
-
Hi all,
I have used the following code to change some parts of the font size in the whole text edit:
@void testTextView :: setInsertTextColor(const QColor& color)
{
QTextCharFormat fmt;
fmt.setForeground(color);QTextCursor cursor = m_edit -> textCursor();
cursor.mergeCharFormat(fmt);m_edit -> mergeCurrentCharFormat(fmt);
}@and after this I cannot change the whole font size, which contains the specific formats in the text edit by calling zoomIn/out.
is there any idea to solve the problem?