salcin
9th September 2013, 16:18
Hi,
I'm playing around with the Diagramscene example provided with QT. What I would like to accomplish is to highlight the DiagramItem when connecting two boxes (e.g. process box).
I have tried to implement the hoverEnter/hoverLeave event and it seems to work for the box I start the connect. When I enter the other box while dragging a line no events are passed to the other DiagramItem. When I release the mousebutton I get hoverEnter events.
How can I make this work?
I'm playing around with the Diagramscene example provided with QT. What I would like to accomplish is to highlight the DiagramItem when connecting two boxes (e.g. process box).
I have tried to implement the hoverEnter/hoverLeave event and it seems to work for the box I start the connect. When I enter the other box while dragging a line no events are passed to the other DiagramItem. When I release the mousebutton I get hoverEnter events.
How can I make this work?