Qt, C++ Draw Connector line between 2 Objects -


i want draw line between 2 rectangles dynamically using mouseclick on qgraphicsscene. line cant slant. each line segment of line has perpendicular each other elbow connector in powerpoint.

the line should re-align automatically while drawing line if mouse goes in slant direction.

incase of qgraphicslineitem drawing on scene, can 1 straight line. managed unable split 2 or more line segments. how implement this?

image

you should roll out own qgraphicsitem custom paint function.

it should rather straightforward, item rectangle connection point of object connection point of object b.

enter image description here

inside rectangle draw 3 lines, 1 top left top center, 1 top center bottom center, , 1 bottom center bottom right.


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -