I have a QPlainTextEdit. It has a text, which contains parts with different fonts. I want to go through the text and know the fonts.
I digged in QPlainTextEdit’ document and found I can go through QTextBlocks. But my text contains only one QTextBlock which contains one QTextCharFormat. I didn’t find any way.
So, can anyone help me? How to get fonts of text blocks in QPlainTextEdit?
↧