[Interest] QPlainTextEdit and zoom-in / zoom-out

Koehne Kai Kai.Koehne at digia.com
Mon Jan 28 14:42:14 CET 2013



> -----Original Message-----
> Subject: [Interest] QPlainTextEdit and zoom-in / zoom-out
> 
> Hi all,
> 
> is there a way to implement a text zoom-in/-out for a QPlainTextEdit (like
> QTextEdit e.g.).
> 
> The only way I managed to change the QPlainTextEdit font was to set the
> default font for the whole application.
>
> Any hints?

Did you try to set a different QTextCursor via http://qt-project.org/doc/qt-4.8/qplaintextedit.html#setTextCursor ? You should be able to set a font via http://qt-project.org/doc/qt-4.8/qtextcursor.html#setBlockCharFormat.

Regards

Kai 



More information about the Interest mailing list