[Lazarus] Problems with Lazarus - off-topic question

Mattias Gaertner nc-gaertnma at netcologne.de
Tue Feb 19 10:43:53 CET 2013


On Tue, 19 Feb 2013 11:22:21 +0200
Chavoux Luyt <chavoux at gmail.com> wrote:

> Hi Mattias
> 
> On 19 February 2013 11:12, Mattias Gaertner <nc-gaertnma at netcologne.de>wrote:
> 
> > <snip>
> > On some Linux the QT version is faster. Unfortunately there is no
> > debian package for that. But compiling it is easy.
> >
> Is there anywhere where it is explained how this was done?

See here:
http://wiki.freepascal.org/Qt_Interface#Quick_start_guide_for_Linux


>  The original
> Delphi language was pretty much a Pascal wrapper around the Windows API
> (that would probably just convert the Pascal-style calls to (far) c-style
> calls and then link to the various windows .dll's)?

Delphi does much more than this. It provides an Object Pascal layer
called VCL, which in the background calls the Windows API. That's why a
VCL application has only a few direct Windows API calls.

The LCL is a Object Pascal layer, very similar to the VCL, but able to
use various backends, including WinAPI, GTK and QT.

> How does this convert
> into QT (or GTK for that matter)? Is there a document that explains this? I
> assume this translation and linking is done by Lazarus and is not built
> into fpc?

Yes.
Maybe this gives an idea:
http://wiki.freepascal.org/LCL_Internals

Mattias




More information about the Lazarus mailing list