Quantcast
Channel: Jobs
Viewing all articles
Browse latest Browse all 18427

Get QPlainTextEdit's structure

$
0
0
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?

Viewing all articles
Browse latest Browse all 18427

Trending Articles