Congratulations to our 2022 Qt Champions!

SetFontCapitalization does not seem to work?!

  • Hello!

    I've tried to modify the RichText highlighter Example which works great so far. Except that setFontCapitalization() does not do anything.

    Here's what I tried:
    Later in @void Highlighter::highlightBlock(const QString &text)@ (which is more or less unmodified) @setFormat(index, length, rule.format);@ is called;

    The text in my textEdit Widget is shown blue, so the RegEx and setForeground() works, but it is not converted to uppercase?! Any ideas what is wrong?

    [Edit: @-tags for code snippets added /Vass]

Log in to reply