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. Connect 2 custom movable QGraphicsItems with an auto adjustable multiline
Forum Updated to NodeBB v4.3 + New Features

Connect 2 custom movable QGraphicsItems with an auto adjustable multiline

Scheduled Pinned Locked Moved Unsolved General and Desktop
qgraphicsitemqgraphicsscene
1 Posts 1 Posters 431 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.
  • P Offline
    P Offline
    ppetukhov
    wrote on last edited by ppetukhov
    #1

    Hello there ;)

    Right now I am doing a custom project and using DIagram Scene as a reference. That's all coming ok but I need to connect my custom QGraphicsItems in a special way.
    So here how it should look like:
    alt text
    Move left item a little bit on top and right
    alt text
    So as you can see lines stay only vertical and horizontal position. Is it possible to achieve such a behavior with
    QGraphicsPathItem or should I use something else?

    Also I want to implement a feature to show points from where connection could be possible. So if a user clicks this point and drags it to the point on the other item a line will be drawn.
    It should look like this example from Visio:alt text

    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