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

Allan Sandfeld Jensen kde at carewolf.com
Sun Dec 15 17:31:45 CET 2024


On Sunday 15 December 2024 15:56:53 Central European Standard Time Wang Gary 
wrote:
> > > 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?
> Well, there are some reasons that I personally would like to avoid
> that. Firstly this
> feature itself is more of a view-level function, modifying the model
> sounds weird[1].
My suggestion wasn't to replace them in the model, but to replace them in the 
view.

Best regards
Allan




More information about the Interest mailing list