[Qt-interest] About the font info with the QPainter in QT3.3.2
Thiago Macieira
thiago.macieira at trolltech.com
Wed Dec 31 12:34:29 CET 2008
lvbing lvbing wrote:
>Hi all
>There is a problem about the QFont with QPinter. I have an
> application,when I set some font like "arial" to my QPinter,when I user
> the
>QPainter::drawText to draw my strings,the painter's fontinfo changed to
> some another font like "MingLiU",and then the GDI handle leak in my
> application.
>
>who knows why the font is changed from arial to MingLiU? And the GDI
> handle leak?
Qt 3's font substitution support is known to be very limited and makes
some weird decisions sometimes. That's just how it is. Upgrading to Qt 4
will give you a better font support.
Also note that, if there is a leak in Qt 3 code, it will not be fixed. Qt
3 has reached end-of-life and no bugs are being fixed anymore. Please
upgrade to Qt 4 as soon as you can.
At the very least, use Qt 3.3.8b/3.3.9.
--
Thiago Macieira - thiago.macieira (AT) nokia.com
Senior Software Engineer - Nokia, Qt Software
Qt Software is hiring - ask me
Sandakerveien 116, NO-0402 Oslo, Norway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20081231/69d200c1/attachment.bin
More information about the Qt-interest-old
mailing list