[Qt] QT patch

Hess, Philip J pjhess at purdue.edu
Sun Jan 7 05:01:29 CET 2007


I would suggest we use 1.26 since the 1.24 qt4.pas doesn't work with the currently posted libqt4intf.dll (1.26) on Windows.

However, the 1.26 qt4.pas doesn't seem to want to compile against 4.1.4 so I'm building Qt 4.2.1 tonight and will test it tomorrow. If it works okay I'll send Den a new Qt4Intf framework to post.

Compiling your patched Qt units with the 1.26 qt4.pas fixed some of the problems I was seeing with FPC 2.1.1 on Windows (but not all), so maybe the problem is not with FPC 2.1.1.

Thanks.

-Phil


-----Original Message-----
From: qt-bounces at lazarus.freepascal.org on behalf of Jesus Reyes
Sent: Sat 1/6/2007 9:07 PM
To: Items specific to the Qt widget set
Subject: RE: [Qt] QT patch
 

--- "Hess, Philip J" <pjhess at purdue.edu> escribió:

> Jesus,
> 
> That fixed the TLabel somewhat, although AutoSize doesn't seem to
> work (label chopped off) and some of my rotated labels are getting
> chopped off even though their AutoSize is False. These worked fine
> with the Laz shipping Qt files.

The Laz shipping Qt files didn't support everything, as the missing
support is being added some features would seem are not working, this
is normal because simply I cannot test everything. I could miss
something a flag here of there, I would need test projects to advance
on completing the missing support and at the same time to try not
breake things.

Also the patch is large, many things were changed. I think first it
should be approved in general, I don't see the point in continuing to
add features if current structure and methods are not likely to match
everybody's idea of qt interface improving.

> 
> Also this bug that was also there today and wasn't affected by the
> latest patch:
> 
> - Dialog box with TGroupBox crashes app.
>

I will take a look, but see my last comment above.
 
> Also, the 1.24 qt4.pas is required to compile the patches, so I
> would revert your patch back to include it.
> 
> Thanks.
> 
> -Phil
> 

So, what are the recommended versions of bindings and library for all
os? considering that shipped lazarus bindings should be upgraded. 

I'm new to Den Jean releasing of bindings and I might have
misunderstood something. If I got it right 1.24 is stable and 1.25 is
beta I choose stable and I haven't find any problem with my qt4.2.2
library at least under linux (though I don't really remember if 1.25
was out when I started). 

Jesus Reyes A.

> 
> -----Original Message-----
> From: qt-bounces at lazarus.freepascal.org on behalf of Jesus Reyes
> Sent: Sat 1/6/2007 7:20 PM
> To: Items specific to the Qt widget set
> Subject: RE: [Qt] QT patch
>  
> 
> --- "Hess, Philip J" <pjhess at purdue.edu> escribió:
> 
> > Jesus' original patch changes the shipping Laz qt4.pas to 1.24,
> so
> > I don't think the issues on OS X are due to the bindings. 1.24
> was
> > for Qt 4.1.4, which is what I'm using on OS X. Looks like the
> patch
> > did something to TLabel perhaps?
> > 
> 
> I found the problem, it was using DrawText function of
> TQtDeviceContext where the painter is rotated and translated,
> because
> clipping is working now, it wont work so I eliminated the use of
> DeviceContext.Origin, instead in SetWindowOrgEx, the painter is
> translated, this way everything is in place, also GetWindowOrgEx
> was
> implemented accordingly.
> 
> Check the attached patch.
> 
> 
> > On Windows, I don't have the 1.24 .dll and it's not available on
> > Den's site anymore, so I conclude that the current 1.26 .dll I'm
> > using is not compatible with the 1.24 qt4.pas, hence the error
> > message I get there about no QVariant_create7 entry point. I did
> > have the 1.25 dll, but same error message.
> > 
> > Also, on OS X, the TStringGrid displays a little better than
> > before, lots of jagged lines like a child's scribbled drawing. I
> > can see faintly behind the lines the data in the grid, which I
> > never saw before, so some progress here clearly.
> > 
> 
> oh, if you could make a screen shot and post it somewhere would be
> much appreciated.
> 
> > 
> > Thanks.
> > 
> > -Phil
> > 
> > 
> > 
> > -----Original Message-----
> > From: qt-bounces at lazarus.freepascal.org on behalf of Jesus Reyes
> > Sent: Sat 1/6/2007 5:47 PM
> > To: Items specific to the Qt widget set
> > Subject: RE: [Qt] QT patch
> >  
> > 
> > --- "Hess, Philip J" <pjhess at purdue.edu> escribió:
> > 
> > > I got the patch installed on Windows, but any LCL app compiled
> > with
> > > the patched Qt widgetset now  gives this error at startup:
> > > 
> > > "The procedure entry point QVariant_create7 could not be
> located
> > in
> > > libqt4intf.dll."
> > > 
> > > I'm using Den's latest .dll. Jesus: what version of the
> interface
> > > library are you using?
> > > 
> > > Thanks.
> > > 
> > > -Phil
> > > 
> > 
> > 
> > I'm using qt4pas-1.24, I compiled QT 4.2.2 installed in
> > /usr/local/Trolltech/Qt-4.2.2 and I think I also re-compiled
> > libqt4intf.so to include debug information. This is under linux,
> > not
> > tried under any other os.
> > 
> > Jesus Reyes A.
> > 
> > 
> > 
> > __________________________________________________
> > Correo Yahoo!
> > Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
> > Regístrate ya - http://correo.yahoo.com.mx/ 
> > _______________________________________________
> > Qt mailing list
> > Qt at lazarus.freepascal.org
> > http://www.lazarus.freepascal.org/mailman/listinfo/qt
> > 
> > > _______________________________________________
> > Qt mailing list
> > Qt at lazarus.freepascal.org
> > http://www.lazarus.freepascal.org/mailman/listinfo/qt
> > 
> 
> 
> __________________________________________________
> Correo Yahoo!
> Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
> Regístrate ya - http://correo.yahoo.com.mx/ 
> 
> > _______________________________________________
> Qt mailing list
> Qt at lazarus.freepascal.org
> http://www.lazarus.freepascal.org/mailman/listinfo/qt
> 


__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
Regístrate ya - http://correo.yahoo.com.mx/ 
_______________________________________________
Qt mailing list
Qt at lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/qt

-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 5306 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/qt/attachments/20070106/7aed0f3a/attachment-0001.bin>


More information about the Qt mailing list