[Qt-qml] Everything is a QObject? What about performance?

Kishore kitts.mailinglists at gmail.com
Wed May 11 06:27:56 CEST 2011


Im using QML in some experimental code and it all is very nice and easy to 
create some amazing stuff.

However, i have some concerns with regards to the memory and speed of 
QDeclarative items. When using the QGraphicsView framework there always was 
the debate of whether all items should be QObjects or not as making them 
QObjects would ease programming but hurt performance.

Now the same applies with QML where all objects _are_ QObjects. Right? If i 
had a scene with hundreds of objects would it not affect performance sevrely?

Can QML ever be an alternative to c++ (plain QGraphicsItem) based canvas or is 
it only limited to small and simple use cases?
-- 
Cheers!
Kishore


More information about the Qt-qml mailing list