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?
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.Qt Code:
CustomItem::contextMenuEventTo copy to clipboard, switch view to plain text mode
When you know how to do it then you may do it wrong.
When you don't know how to do it then it is not that you may do it wrong but you may not do it right.
Bookmarks