<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2523" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=119030614-14122004>I thought I'd also saw the problem even when I disabed
the window procedures (and hence all painting) but maybe that's my
imagination.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=119030614-14122004></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=119030614-14122004>I thought qmake could generate VC++ project files but
maybe I'm wrong there. Personally I use Borland CBuilderX since the Borland
incremental linker is much faster than the Microsoft or GNU
one.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=119030614-14122004></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=119030614-14122004>The Trolltech position of this port is unknown. They
know it exists and they've never complained about it. They have said they won't
release a GPL version of Qt/Win32 but their reasoning has become indefensible
since they released the GPL Mac OS X version.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=119030614-14122004>As for legal issues - there are none we are aware
of. We do have to be careful no code slips on from the commercial version of Qt
(or any other imcompatibly licensed product for that
matter).</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=119030614-14122004></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=119030614-14122004>Chris</SPAN></FONT></DIV><BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> REGAT-BARREL Aurélien
[mailto:arbvtk@yahoo.fr] <BR><B>Sent:</B> 14 December 2004 13:49<BR><B>To:</B>
kde-cygwin@kde.org<BR><B>Subject:</B> RE: [PATCH]QT_WIN32_3_3_BRANCH-GDI
Leak<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV>Hi,</DIV>
<DIV>Sorry, I didn't subscribe to the ml, I didn't find a link to do it from
the project page.</DIV>
<DIV>Yes, the problem you describe is what I found. This behaviour (widgets
become dark/black, whole screen becomes corrupted...) is typically due to a
GDI leak. I ran this tool:</DIV>
<DIV><A
href="http://msdn.microsoft.com/msdnmag/issues/03/01/GDILeaks/">http://msdn.microsoft.com/msdnmag/issues/03/01/GDILeaks/</A></DIV>
<DIV>and it appeared that it was a GDI pen leak (hundreds of pens no freed).
So I looked for CreatePen and quickly found the guilty. Now it works fine
(after removing this 2 lines).</DIV>
<DIV>There is another problem with erasing. I didn't find why it causes
flickering. There are other problems too (mouse moves cause flickering too,
etc...). I can't spend much time, for now, but later I will try to help you. I
use Visual C++ 2003 and I was unable to create VC++ project files with qmake
& .pro files. It is annoying because without the debuger & source code
navigation I am lost :-) Is there a trick ?</DIV>
<DIV>What is the position of Trolltech about this port ? Can we use it without
worry ?</DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV>Regards.</DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV> Thanks for this. Can you explain exactly what problems
you were seeing with<BR>
painting?<BR> <BR> There is a
long-standing problem with example programs such as
scrollview<BR> (resize the window few time to see what I
mean) where painting in the window<BR> and even the whole
screen becomes corrupted. I think I've narrowed this
down<BR> to the window hierachy but maybe you have some
ideas that could help?<BR> <BR>
Chris</DIV>
<DIV> Hi,<BR> This is my first post to
this ml so excuse me if I am doing something wrong<BR>
:-)<BR> I downloaded and tried qt-3 QT_WIN32_3_3_BRANCH. It
quickly appeared that<BR> there was a problem with painting.
I ran GDI leaks detection tools and found<BR> a problem with
pens. The problem is in kernel/qpainter_win.cpp, line
2887:<BR>
HPEN pen = CreatePen (PS_SOLID, 1, RGB (0, 0,
0));<BR>
SelectObject (hdc, hpen);<BR> note the use of pen with
CreatePen and hpen with SelectObject. I simply<BR> removed
this 2 lines, and it works better now.<BR> I hope this
helps.<BR></DIV><BR><BR>
<DIV>
<DIV>
<DIV>Aurelien REGAT-BARREL <BR></DIV></DIV></DIV>
<P>
<HR SIZE=1>
Découvrez le nouveau Yahoo! Mail : <FONT color=red>250 Mo d'espace</FONT> de
stockage pour vos mails !<BR><A
href="http://fr.rd.yahoo.com/mail/taglines/*http://fr.rd.yahoo.com/evt=25917/*http://fr.rd.yahoo.com/mail_fr/mail_campaigns/splash/taglines_250/default/*http://fr.promotions.yahoo.com/mail/creer28.html">Créez
votre Yahoo! Mail</A><BR><BR>Avec Yahoo! faites un don et soutenez le <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">Téléthon
!</A></BLOCKQUOTE></BODY></HTML>