Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QGraphicsScene: QGraphicsItem with clickable Icons and appearing widgets
gnxtr last edited by
I have a QGraphicsScene with nodes. Those nodes should have additional icons(Show Folder, Show/Edit Properties, Delete Node) who become visible when the mouse hovers over the node. When one clicks these icons a additional widget with edits, selections etc. should appear next to the node.
So far I made a class derived from QGraphicsItem which detects the hover and paints the additional Icons. I also have several QRecs to detect when the mouse hovers/clicks one of these icons.
Can someone give me an advice how I should implement the missing widget? Or if there is an better approach to implement this? I've attached a screenshot to give you an better idea.
Any suggestions are much appreciated,