Hi.
I have a QTextEdit. And I have a task to change formatting of the text in text edit.
First task is to set initial font size. I tried numerous variants:
1:
QTextCharFormat cf;
cf.setFontPointSize(14);
completedTextEdit->setCurrentCharFormat(cf);
2:
completedTextEdit->setStyleSheet ( "font: 14px" );
3:
completedTextEdit->setFontPointSize(14);
4:
method with setFont (did not work for my surprise)
All that methods (first 3). But I have problem when using setting font size. If I call zoomIn and zoomOut they do not work. And this functions work well if i don't use setting size.
Bookmarks