Hi Guys,
I’m trying to implement dihedral angle manipulation in our bond-centric
tool. One of the ideas I’ve come up with would be to show different
information based on what atom the user is mousing over. For example, if
there are atoms a-b-c-d and the user selects the b-c bond as its
construction bond, the usual angles and lengths are displayed. If the user
now mouses over either a or d, the usual angles fade out and the dihedral
angles are displayed. The user could then click and drag a or d to change
the dihedral angle.
Thats the idea at the moment, its not quite complete but I wanted to try a
few things out in the code to test its viability. The problem is I’m not
sure how or if its even possible to handle mouse-over on the atoms without
checking the entire molecule to see if any atoms are under the cursor every
single mouse-move event. Does anyone know a better way to do this? Is
there mouse-over events for QObjects? Ross found QHoverEvent but that
appears to be on a widget basis, not on an object basis.
Thanks in advance,
James