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. Graphics Item parenting bug, works on Node but not on Arrow labels... 😬
Forum Updated to NodeBB v4.3 + New Features

Graphics Item parenting bug, works on Node but not on Arrow labels... 😬

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 207 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.
  • enjoysmathE Offline
    enjoysmathE Offline
    enjoysmath
    wrote on last edited by
    #1

    https://www.youtube.com/watch?v=Mxp_gJRRGcI&feature=youtu.be

    Here's the video. When I add a fresh node, clearly the label is not part of the node's bounding rect.

    Then when I add a child node to the parent node, the child node's labels are still not effecting the parent bounding rect (desired).

    But as you can see when I finally add an arrow, the whole design messes up, and the child -> Label -> TextItem -> ProxyWidget(plain text edit that you can see) hierarchy is such that the Label / TextItem boung rects are effecting the parent node's bounding rect.

    I've added in if conditions / filters where appropriate. Other than checking the computed bouding rects (making sure they don't include certain children) is there anything else I should check or a flag I should be aware of to make things easier?

    Thanks.

    https://github.com/enjoysmath
    https://math.stackexchange.com/users/26327/exercisingmathematician

    1 Reply Last reply
    0
    • enjoysmathE Offline
      enjoysmathE Offline
      enjoysmath
      wrote on last edited by
      #2

      The solution was to not include the arrows in the parent node's bounding rect computation. But arrows can now go "out of the box" but it's not a problem.

      https://github.com/enjoysmath
      https://math.stackexchange.com/users/26327/exercisingmathematician

      1 Reply Last reply
      1

      • Login

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