Cut and paste in QPlainTextEdit
General and Desktop
2
Posts
2
Posters
2.5k
Views
1
Watching
-
I have set the font of a QPlainTextEdit to Courier New:
@ QFont font = QFont("Courier New");
font.setPixelSize(14);
charFormat = new QTextCharFormat();
charFormat->setFont(font);
setCurrentCharFormat(*charFormat);@When I cut and paste part of a text this is going fine.
However, when I select all, cut and paste the font is not Courier New anymore.What is the problem and how can this be solved?
[edit: Code highlighting / Vass]