How to draw rectangle, rhombus, triangle at the extremities of lines
-
Have a look at the "diagram scene example":http://doc.qt.nokia.com/4.7/graphicsview-diagramscene.html I think this is what you want.
Fortunately I remembered a previous topic you made so I could guess you're drawing on a QGraphicsscene. Please provide more information if you want specific answers.