hello,
i have a class implemented from QGraphicsItem, called Node.
i have a rectangle shaped "Node" and i can do something when user clicked on it
i use mousePress and mouseRelease events.
but i want to be notified when user clicked "out of" the rectangle shape.
i tried to implement these functions:
Qt Code:
cout<<"in"<<endl; update(); } cout<<"out"<<endl; update(); } cout<<"out"<<endl; }To copy to clipboard, switch view to plain text mode
these do not reacts if i click in or out of rectangle.
should i set a logic on my own for example getting the mouse position and control if it is out of rectangle?
or is there a built in method?
thanks for any idea.
Added after 39 minutes:
or how can a "Node" object know if other Node object is clicked?
also i wonder, googled but could not found that when does focusinevent and focusoutevent triggered?
Bookmarks