Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QGraphicsView & QML: single whole GUI item vs. many separate items
Qt 6.11 is out! See what's new in the release blog

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

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 1.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    ddpro
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved