[Qt] QT patch

Jesus Reyes jesusrmx at yahoo.com.mx
Sun Jan 7 01:32:24 CET 2007


--- Jesus Reyes <jesusrmx at yahoo.com.mx> escribió:

> 
> --- "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.
> 

This is what it looks here http://imagebin.org/6846
some previous screenshots: 
http://mx.geocities.com/jesusrmx/lazarus/images/lazqtcustomcontrol.png
http://mx.geocities.com/jesusrmx/lazarus/images/lazqtcustomcontrol1.png

the button covering by the custom control is intentional to force
some redraws on it.

btw I forgot, I didn't implement rotated text yet and the patch
includes some comments that I should have deleted.

> > 
> > 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/ 

__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
Regístrate ya - http://correo.yahoo.com.mx/ 



More information about the Qt mailing list