Qt 6.11 is out! See what's new in the release
blog
QGraphicsView & QML: single whole GUI item vs. many separate items
QML and Qt Quick
1
Posts
1
Posters
1.8k
Views
1
Watching
-
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?