[Qt] error compiling qt lcl

Den Jean Den.Jean at telenet.be
Mon Jul 9 18:47:05 CEST 2007


On Monday 09 July 2007 06:24:47 pm Felipe Monteiro de Carvalho wrote:
> This can't be done because we have dozens of libraries, each with a
> sligtly different Rect definition. The Pascal RTL is yet another
> library, and there is no particular reason for making it's rect
> compatible with Qt instead of compatible with whatever rect type is
> used on Gtk, or Carbon, or on OpenStep, or on SDL, etc, etc.

I did not ask a Qt compatible Rect, but a Mac compatible one. 
For win32 it is already done by FPC, see below, why not for Mac.
Qt nor any other lib are the point, but Mac API,Win32 API, ...

./rtl/objpas/types.pp :


{$ifdef Windows}
  TRect = Windows.TRect;
{$else}
  TRect =
{$ifndef FPC_REQUIRES_PROPER_ALIGNMENT}
  packed
{$endif FPC_REQUIRES_PROPER_ALIGNMENT}
  record
    case Integer of
      0: (Left,Top,Right,Bottom : Longint);
      1: (TopLeft,BottomRight : TPoint);
    end;
{$endif Windows}
  PRect = ^TRect;



More information about the Qt mailing list