[Qt-interest] QTextEdit: Tab spacing

Stephan Rose kermos at somrek.net
Sat Jun 6 15:45:14 CEST 2009


On Tue, 2009-06-02 at 18:01 -0700, Malyushytsky, Alex wrote:
> Have you tried to check width of
> QRect QFontMetrics::tightBoundingRect ( const QString & text ) const
> Of the QString which has 4 spaces?

I've kind of figured that tight bounding rect would be tighter than the
other options I've tried but I'll give it a shot.

Thanks,

Stephan





More information about the Qt-interest-old mailing list