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 - itemChanged & child items issue
Forum Updated to NodeBB v4.3 + New Features

QGraphicsItem - itemChanged & child items issue

Scheduled Pinned Locked Moved Unsolved General and Desktop
qgraphicsitem
1 Posts 1 Posters 285 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.
  • D Offline
    D Offline
    Dariusz
    wrote on last edited by
    #1

    Hey

    I have a bit of a hiccup... I have a node editor in which I've subclassed item changed in order to update childItems connections positions.

    Essentially I have

    ParentObject
    PinObjectList
    ConnectionList.

    When ParentObject get itemChanged, I do processConnectionPositionUpdate(), which notifvies each pinObject to notify each connection to re-centre their positions in accordance to new PinObject centre based on ParentObject move... However... due to the fact I emit that command before finishing itemChanged (I think) not all of the connections update to latest position and some of them appear disconnected... or at least that what I think happen...

    Can any1 suggest how can I address it ?

    Each pin parent is set ParentObject, however, sometimes I can have nested pins in which parent object will be the pin above...

    I wish a setPos would be virtual/have signal then I could just overwrite it on pinItself when parent position changes (I guess?) but I can't... or maybe I've approached it all backward?

    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