[Qt-interest] [QT & GDI handle]Where is my GDI handle?
lvbing lvbing
lvbing1981 at gmail.com
Tue Dec 16 10:07:18 CET 2008
Hi all,
I have an application to draw like rectangle,line,text etc.now,I meet a
trouble:when I user the QPainter to drawText like this:
void MyDrawArea::Draw(QPainter painter)
{
QFont font = getFont();
painter.setFont(font);
QString drawText = getDrawText();
painter.drawText( ......); //The para for drawtext
}
now the program is:if the font bold is true,my program's GDI will be
increase until the GDI handle equal to 10,000,and then crashed.
who know why I use the QPainter's setFont,but my GDI handle increase to
10,000?
BTW:my platform is WIN XP,and the QT's version is QT3.3.2.
BTW:if I set the font is normal,the GDI handle will OK.
Thax:)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20081216/1e9e801e/attachment.html
More information about the Qt-interest-old
mailing list