View Single Post
Old 08-25-2024, 01:09 PM   #11
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,878
Karma: 6120478
Join Date: Nov 2009
Device: many
I just tried it using that exact same approach on a QPlainTextEdit (which is what CV is) and could see no changes at all even though the code compiled just fine.

Code:
    QTextBlockFormat fmt;
    fmt.setLineHeight(150, QTextBlockFormat::ProportionalHeight);
    QTextCursor tc = textCursor();
    tc.clearSelection();
    tc.select(QTextCursor::Document);
    tc.mergeBlockFormat(fmt);

So something in QPlainTextEdit is preventing the change.

Last edited by KevinH; 08-25-2024 at 01:23 PM.
KevinH is offline   Reply With Quote