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. QGraphicsItem - automatically rearrange positions (space out)?
Qt 6.11 is out! See what's new in the release blog

QGraphicsItem - automatically rearrange positions (space out)?

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

    I am developing a tools which generates a bunch of QGraphicsItem derived class instances programmatically.

    Those items are being added to an existing QGraphicsScene

    Is there some QGraphicsView/QGraphicsScene method/call to update the positions of all the items (both existing and newly added) so that they do not overlap each other ?

    JonBJ 1 Reply Last reply
    0
    • nicholas_yueN nicholas_yue

      I am developing a tools which generates a bunch of QGraphicsItem derived class instances programmatically.

      Those items are being added to an existing QGraphicsScene

      Is there some QGraphicsView/QGraphicsScene method/call to update the positions of all the items (both existing and newly added) so that they do not overlap each other ?

      JonBJ Online
      JonBJ Online
      JonB
      wrote on last edited by
      #2

      @nicholas_yue
      Not so far as I know. There is no "Tile" or "Cascade". Just write it yourself.

      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