[Qt-interest] Fwd: My QLabel's font looks ugly
James Yan
james.pizza at gmail.com
Thu Apr 14 20:09:11 CEST 2011
Is that may caused by rich format text? <font color = black> </font>
Begin forwarded message:
> From: James Yan <james.pizza at gmail.com>
> Date: April 11, 2011 6:28:01 AM GMT+08:00
> To: qt-interest at qt.nokia.com
> Subject: My QLabel's font looks ugly
>
> 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/20110415/94eb0316/attachment.html
More information about the Qt-interest-old
mailing list