On 21/01/2008, Den Jean <[EMAIL PROTECTED]> wrote:
> On Monday 21 January 2008 01:18:56 pm Giuliano Colla wrote:
> > Either one takes the Qt way, i.e. using style to *mimic* the native
> > *look*, without actually using it, and provides a consistent behavior,
> this does not honour the huge Qt effort. Qt DOES use
> the native widget when necessary do have native look for XP, Vista and Mac OS
> X style. This is why these styles are not available on the other platforms
> because the lack of the native widget set library.

Nope, it's like I explained before. Qt does all custom painting, it
does not required the underlying 'native' widgets. They used to copy
the look of OS's by manually drawing all controls.  Since late 3.x or
starting with 4.x (not sure which version) Qt under XP, Vista, MacOS X
and GTK asks the corresponding component (via native API) to draw
itself on a memory bitmap. Qt then paints that bitmap to the correct
location on the form. This overcomes the issue when user install there
own custom themes. Qt does not create a instance of the native widget.

I believe this is similar to what LCL did a while back with XP theming
in the themes (or whatever it's name is) unit.

Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to