{
//mPolygn is a QPolygonF type, and is set three points which are start and end point of line.
path.addPolygn(mPolygn);
return path;
}
QPainterPath shape() const
{
QPainterPath path;
//mPolygn is a QPolygonF type, and is set three points which are start and end point of line.
path.addPolygn(mPolygn);
return path;
}
To copy to clipboard, switch view to plain text mode
This one seems fine (Skip the "QGraphicsItem::shape()"). How do you detect if the mouse is over the item. Can you show the code? May be there is the error.
Bookmarks