[Qt-interest] C++ or QML

Thiago Macieira thiago at kde.org
Sat Jun 26 09:48:22 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100626/832bb710/attachment.bin 


More information about the Qt-interest-old mailing list