Hello,
I have made custom graphics widget with:
QRectF graphicsTask
::boundingRect() {
return QRectF(-50,
-50,
100,
100);
}
{
path.addEllipse(boundingRect());
return path;
}
QRectF graphicsTask::boundingRect()
{
return QRectF(-50, -50, 100, 100);
}
QPainterPath graphicsTask::shape()
{
QPainterPath path;
path.addEllipse(boundingRect());
return path;
}
To copy to clipboard, switch view to plain text mode
but it gets mouse events only on part of shape down and right of center of the item (bottom right quarter of a circle).
How can I make it work on all shape?
Bookmarks