Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Multiple QtGraphicsScene in a QtGraphicsView or one scene with many similar objects ?
Qt 6.11 is out! See what's new in the release blog

Multiple QtGraphicsScene in a QtGraphicsView or one scene with many similar objects ?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 674 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.
  • S Offline
    S Offline
    Selrak
    wrote on last edited by
    #1

    Hello everyone,

    I must create this GraphicsView which will have lots of instances of that same thing to display. The thing in question is actually a graph with multiple curves, which will show some stats for each cycle. As the app goes through more cycles, graphs append next to each other in my graphics view. It is then possible to track the progress on some stuff at a glance by looking over the sequence of graphs and how the curves evolve (if the tend to decrease, increase, stabilize ...)

    What is best here - create one scene per graph (and then I don't have to worry about coordinates of stuff within the graph relative to the general graphicsView window, I can just specify stuff relative to each graph's scene) or is it lighter and faster to just draw multiple graphs in one scene, going through the hassle of specifying the position of every relative to the main GraphisView/graphicsScene (which share the same coordinates in that case) ?

    Thanks in advance,
    Charles

    mrjjM 1 Reply Last reply
    0
    • S Selrak

      Hello everyone,

      I must create this GraphicsView which will have lots of instances of that same thing to display. The thing in question is actually a graph with multiple curves, which will show some stats for each cycle. As the app goes through more cycles, graphs append next to each other in my graphics view. It is then possible to track the progress on some stuff at a glance by looking over the sequence of graphs and how the curves evolve (if the tend to decrease, increase, stabilize ...)

      What is best here - create one scene per graph (and then I don't have to worry about coordinates of stuff within the graph relative to the general graphicsView window, I can just specify stuff relative to each graph's scene) or is it lighter and faster to just draw multiple graphs in one scene, going through the hassle of specifying the position of every relative to the main GraphisView/graphicsScene (which share the same coordinates in that case) ?

      Thanks in advance,
      Charles

      mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Selrak
      Hi and welcome

      Is the graph a custom Item ?

      I would use a scene for each
      if memory permits (Desktop should be no issue)
      and there is no need to view different "graph paths" at same time.

      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