[Qt-interest] missing first character in labels

Christopher Boger cboger at rosenaviation.com
Tue Sep 15 17:44:33 CEST 2009


I'm having an intermittent problem that seems to be related to fonts.
I'm using Qt 4.5.2 on embedded linux. 

 

The problem is that sometimes the first character is missing from
on-screen text. The problem only shows up about half the time. Sometimes
when I start up the app, it's there. If I restart the app, it might
disappear. The reason I think it's related to a font problem is that the
problem will only show up once for every font/size/style combination. In
other words, if I use the same font/size/style throughout the app, I
only get one string in the whole app with a missing first character. If
I add another font/size/style combo, I get another missing character on
strings with that font configuration.

 

I tried using QFontDatabase.addApplicationFont, but this doesn't seem to
have an effect.

 

Any ideas out there? 

 

Thanks in advance.

 

Chris

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090915/18567f99/attachment.html 


More information about the Qt-interest-old mailing list