[Qt-interest] How can I use QFontMetrics to measure strings which contains non-ASCII characters?
Kermit Mei
kermit.mei at gmail.com
Wed Jan 19 09:40:04 CET 2011
2011/1/19 Willem Liu <wliu at infologic.nl>
> Hi Kermit,
>
> In what way did you find it inaccurate?
>
Use the same length of string with Chinese characters. But the result is
different.
> Have you tried the: QRect QFontMetrics::boundingRect ( const QString & text
> ) const?
>
Yes, I have. But it was inaccurate too.
> Regards,
>
> Willem Liu
> Software Engineer
>
> Please consider the environment before printing this e-mail.
>
> Thanks
--
B.R
Kermit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110119/44e65ee7/attachment.html
More information about the Qt-interest-old
mailing list