Hello Everyone,
I have created a CustomGrahicsIitem Class for drawing Rectangle,Circle,Line.
Now I want to convert Rectangle to Circle using Context Menu option for Rectangle Item.
How to do this?
Printable View
Hello Everyone,
I have created a CustomGrahicsIitem Class for drawing Rectangle,Circle,Line.
Now I want to convert Rectangle to Circle using Context Menu option for Rectangle Item.
How to do this?
You can re-implementand add QAction options to convert to Circle / Line. Connect the those actions to a slot to hide / show the appropriate Circle/Line in the CustomItem.Code:
CustomItem::contextMenuEvent