Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. odd error Parenting and QGraphicsScene coordinate transforms
Qt 6.11 is out! See what's new in the release blog

odd error Parenting and QGraphicsScene coordinate transforms

Scheduled Pinned Locked Moved Unsolved Qt for Python
qt for pythonpyside
1 Posts 1 Posters 61 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.
  • G Offline
    G Offline
    GrantH
    wrote last edited by
    #1

    I am writing a graphical node-edge editor, and am implementing hyperedges - single edges but with more than two ends. These are drawn between nodes, as can be seen in the image below, of 2 starting nodes and one ending node.

    6b42218f-4aba-4a6d-b5cb-64fdd2df0050-image.png

    The following has 2 ending nodes:
    7096ed91-ccf1-4941-a62c-3590e9b95c33-image.png

    The objects and code for creating these is nearly identical, with only the commands and lists for which end changing between the two. The 2-starts version can be dragged around perfectly, but the 2-ends version does this, with the end positions being updated 'twice' - by the same code that works for the 2-starts version.
    19675174-5e88-4f73-90d9-5fb6b5539bc1-image.png
    If I add another 'end' to the working one, it starts giving the error too.

    This looks like a scenePos vs pos issue, but it only occurs when the parent edge is split on an outgoing edge, not an incoming one. Could a transform of some sort help?

    I have checked the calls for both moves, and they are identical. The structure of the data connecting the items is correct - I have carefully checked it, and again, it works for 2-starts.

    Any ideas where to look would be welcomed!
    Grant

    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