Dear Marcel
Now i am at home....:-)
I tried to attach complete code but it is big. So i am attaching five files. "This code is similar to the example in QT4.3 examples but a little difference"
Explanation :- The application has buttons on the left when the user click any button and then click in the screen window the polygon is pasted there whose picture was displayed on the button clicked. But i want that polygons in DiagramItems works as different gates and i can add any number of connectors at run time to that. But standard are one input and two output connectors(polygon) with a gate(Polygon).
So i created a class "Gate.cpp" (Attached) which contains AndItem class which creates a polygon works as connector to gate and i tried to create a run time object of AndItem class mentioned in "Gate.cpp" file in the constructor of the DiagramItem class which creates diffrent types. Now if the user click the button and then click the screen window there are two polygon pasted which will together as Gate polygon and connector polygon. Then i will modify for connecting two polygons with arrow.
I am new to Qt and any help ,i will take it gladly.
Thanks for your guidance Marcel.
Sorry if i give you any trouble.
Rohit
Bookmarks