Context Menu event with QGraphicsWidget
- by onurozcelik
In my application I subclass QGraphicsWidget
In paint I am drawing a line with pen width 4.
I reimplemented boundingRect() and shape().
But I can't catch context menu event every time I click right mouse button.
What is the problem.(Pen Width ? )
//Sample code for boundingRect() and shape()
QRectF boundingRect() const
{
qreal rectLeft =…