[Qt-interest] My QLabel's font looks ugly

James Yan james.pizza at gmail.com
Mon Apr 11 00:28:01 CEST 2011


I'm using Mac OS X (Qt 4.6), and setText for my QLabel looks like following code:

-------
setAlignment(Qt::AlignCenter);
setFont(QFont("",13));
setText("<font color=black>" + strLabel + "</font>");
adjustSize();
-------

but the QLabel's text looks ugly, for examples:
- "Brush" looks like "B rush"
- "Color" looks like "C olor"
- "More" looks like "Mo re"

What's wrong with it?
thanks.


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


More information about the Qt-interest-old mailing list