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. QGraphicsPathItem anti collision with other items

QGraphicsPathItem anti collision with other items

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 132 Views 1 Watching
  • 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.
  • A Offline
    A Offline
    addebito
    wrote on last edited by
    #1

    Hi at all,

    I need to connect some QGraphicsRectItems between them. At the moment I've some QGraphicsLineItems but some times this line goes over other Items, and I'd like to make this line as a spline or polyline (path) to go around the other items.
    I see there is a QGraphicsPathItem... ok I can use it, but the problem is to calculate the shortest or best way to avoid the collision.
    I can intersect other lines but not other QGraphicsRectItems.
    Do you know how to calculate this route?
    Do you have any idea?
    Thanks a lot.

    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