Qt World Summit: Register Today!

QGraphicsView & QML: single whole GUI item vs. many separate items

  • 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?

Log in to reply