[Qt-interest] C++ or QML

OS Prog osprog at gmail.com
Mon Jun 28 10:11:28 CEST 2010


> 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.
>
> --
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
>  Senior Product Manager - Nokia, Qt Development Frameworks
>      PGP/GPG: 0x6EF45358; fingerprint:
>      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
>

I understand that the performance can't be the same as well coded C++, but
if it is close enough I'd say that's the way to go.
I'll start with QML for GUI, even I have some problems with the designer in
the Qt creator. I'll fight a bit more and I'll ask later about it.
Meanwhile are there any demos how the QML is running on various embedded
devices (with different processors and clock freq.s).

Cheers,
Nik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100628/338a56cd/attachment.html 


More information about the Qt-interest-old mailing list