Qt World Summit: Submit your Presentation

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;

    QTextCursor cursor = m_edit -> textCursor();

    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?

Log in to reply