GUI library for D

Matthias Pleh jens at konrad.net
Wed Apr 6 04:38:30 PDT 2011


Am 06.04.2011 11:40, schrieb Nick Sabalausky:
> "Matthias Pleh"<jens at konrad.net>  wrote in message
> news:inh91t$1854$1 at digitalmars.com...
>> Am 06.04.2011 09:00, schrieb Jacob Carlborg:
>>>
>>> I think gtkD is out of the question since it's not using native
>>> controls. Don't know about QtD, if I recall correctly it, at least,
>>> looks quite native. But I would guess it would too hard to find whole
>>> int that, specially on Mac OS X.
>>
>>
>> Qt (and so QtD) use some native controls for Dialogs, e.g.: FilePicker,
>> colorPicker, ... but most controls are drawn by the PaintEnginge. But Qt
>> make really good job in imitating the native Theme. (except OSX, which is
>> a little bit special)
>>
>
> My understanding is that Qt also has a compile-time flag that will make it
> actually use the real Win32 controls.
>
>

No! When compiling the Qt-library, you can specify a flag for the theme 
to build. The controls appears then with this theme.

On windows you can easaly test this, with Spy++.
I've just created a simple window with 
QHBoxLayout,QGridLayout,QGroupbox,Qlabel,QLineEdit,QTextEdit.
But ther is only one win32-control and this is the main-window!
You can see this also on the traffic of the windowsmessages.
This is so on Windows, maybe Qt use more native controls on other platforms?

The problem with OSX is, as I know, that some controls not only look 
different, but are also different arranged, and this make it more 
difficult to emulate.

°Matthias


More information about the Digitalmars-d mailing list