QGraphicsScene: QGraphicsItem with clickable Icons and appearing widgets

  • Hi,

    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,



Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.