Standard GUI framework inspired by Qt
Paulo Pinto via Digitalmars-d
digitalmars-d at puremagic.com
Thu Mar 5 00:05:05 PST 2015
On Thursday, 5 March 2015 at 07:39:29 UTC, Jacob Carlborg wrote:
> On 2015-03-03 23:29, Jonas Drewsen wrote:
>> On Tuesday, 3 March 2015 at 22:16:36 UTC, Freddy wrote:
>>> I'm not much of a gui person,but what is the advantage of
>>> using QML
>>> over D's import
>>> and CTFE.
>> No need to recompile (ie. have the source code) the app you
>> are doing
>> when you change the QML. This in turn also speeds up design
> I've been thinking of a design that there's a GUI builder tool.
> When the developer builds the GUI the tool will serialize the
> GUI to some format, XML, binary or whatever. The application
> that uses the GUI can load it at runtime for fast development
> As an optimization the tool can serialize the GUI as D code.
> The application can than, at compile time, load the D code
> using import expression and mix it in somewhere. In theory, it
> should be as the developer wrote GUI code by hand.
This is the approach taken by modern GUI toolkits for native
applications, Qt, JavaFX, XAML, Android.
I imagine on Mac OS/iOS NIBs also follow a similar pattern.
More information about the Digitalmars-d