<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2523" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=862404809-13122004><FONT face=Arial
color=#0000ff size=2>Thanks for this. Can you explain exactly what problems you
were seeing with painting?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=862404809-13122004><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=862404809-13122004><FONT face=Arial
color=#0000ff size=2>There is a long-standing problem with example programs such
as scrollview (resize the window few time to see what I mean) where painting in
the window and even the whole screen becomes corrupted. I think I've narrowed
this down to the window hierachy but maybe you have some ideas that could
help?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=862404809-13122004><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=862404809-13122004><FONT face=Arial
color=#0000ff size=2>Chris</FONT></SPAN></DIV>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV>Hi,</DIV>
<DIV>This is my first post to this ml so excuse me if I am doing something
wrong :-)</DIV>
<DIV>I downloaded and tried qt-3 QT_WIN32_3_3_BRANCH. It quickly appeared
that there was a problem with painting. I ran GDI leaks detection tools and
found a problem with pens. The problem is in kernel/qpainter_win.cpp, line
2887:</DIV>
<DIV> HPEN pen = CreatePen
(PS_SOLID, 1, RGB (0, 0, 0));<BR>
SelectObject (hdc, hpen);</DIV>
<DIV>note the use of pen with CreatePen and hpen with SelectObject. I simply
removed this 2 lines, and it works better now.</DIV>
<DIV>I hope this helps.</DIV><A
href="http://fr.rd.yahoo.com/mail/taglines/*http://fr.rd.yahoo.com/mail_fr/events/telethon2004/*http://www.telethon.fr/030-Don/10-10_Don.asp"></A></BLOCKQUOTE></BODY></HTML>