On Monday 19 February 2007 16:02, Felipe Monteiro de Carvalho wrote:
> Ok, I tryed to fix it, but it seams the problem is not on qt
> interface. Here is the code that gets screen size:
>
> function TQtWidgetSet.GetSystemMetrics(nIndex: Integer): Integer;
> ................
> SM_CXSCREEN:
> begin
> Result := QWidget_width(QApplication_desktop);
> end;
> SM_CYSCREEN:
> begin
> Result := QWidget_height(QApplication_desktop);
> end;
>
> That code doesn't use TRect .... maybe there is something wrong on the
> qtintf library? Or with Qt itself. And then the TRect problem exists
> but is unrelated.
in Qt this call is inlined as
inline int QWidget::width() const
{ return data->crect.width(); }
and crect is a QRect in QWidgetData data;
so someone with a Mac should test this in C++ (perhaps dependant
on which Mac OS or which CPU platform). Take a Qt demo app to not lose
time creating one.
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives