[Interest] Make a specific Unicode glyph wider in a QTextLayout

Allan Sandfeld Jensen kde at carewolf.com
Sun Dec 15 12:29:29 CET 2024


On Sunday 15 December 2024 08:23:50 Central European Standard Time Wang Gary 
wrote:
> Hi,
> 
> I'm attempting to implement a feature in a plain text editor that similar
> to Notepad++'s "show hidden characters", which allows toggle the visibility
> of non-printable characters, like zero-width space, CR LF and so-on.
> 
> So the question is, what's the proper approach to implement such a feature
> using Qt's public API? Do the mentioned two approaches sound right?
> 
Replace the non-visible character in the model with a visible one in the view?

Best regards
Allan




More information about the Interest mailing list