[Qt-interest] C++ or QML

Jan janusius at gmx.net
Mon Jun 28 11:44:40 CEST 2010


I doubt that anyone has a definite answer but maybe some thoughts:

Is QML also superior to UIs made with QtDesigner when the application is 
a only used on desktops?

 From what I read in this thread it seems QML will replace .ui files 
(someday).

Jan

Am 26.06.2010 09:48, schrieb Thiago Macieira:
> Em Sexta-feira 25. Junho 2010, às 21.02.37, OS Prog escreveu:
>> If the performance is (almost) the same then the best way to go is as you
>> suggest - QML for the GUI and C++ backend. Is there any performance
>> comparison between C++ and QML?
>
> That's not a fair question.
>
> Obviously QML cannot be faster than the equivalent, well-written C++. After
> all, the QtDeclarative module is written in C++ and, if you add a layer on
> top, it cannot make things faster.
>
> That said, please understand that QtDeclarative is written such that its
> impact is extremely limited. It's been optimised and will continue to be.
>
> Also note that I said "well-written C++". In order to write code that is
> faster than QML, you must be able to write C++ code that is as good as the
> code that the Qt developers wrote. Are you up for that task?
>
> The biggest advantage QML is going to give you is the ease of writing your UI,
> both in terms of time spent, the flexibility to change, and the fact that
> you're building on top of an optimised stack for doing the UI.
>
> There's another potential advantage, which is that we can change the stack
> under you in QML to do something even better, but our ability to do that in
> C++ is limited.
>
>
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest



More information about the Qt-interest-old mailing list