Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QGraphicsView & QML: single whole GUI item vs. many separate items
ddpro last edited by
I am developing a desktop application using QGraphicsView and QML with several panels that are defined as seperate QML components.
Currently I am creating those panels as QGraphicsItems in C++ and add them individually to the scene.
Arranging them on the screen is done in the scene's setSceneRect method.
I am thinking about moving the arranging part to QML as well, resulting in one single QML component that basically contains the whole GUI.
My question is now: is there any (performance) benefit in adding a bunch of separate items individually to the scene versus having only one QGraphicsItem for the complete GUI?