Strange box around my custom QGraphicsObject subclass
-

It's the outermost box (the pic is zoomed in; but at larger zoom it appears to be just 1 pixel wide) Shouldn't be there. I am definitely not drawing it. What I know: its the boundingRect() in size/pos/shape.
It goes away only when I drag the white box.
-

It's the outermost box (the pic is zoomed in; but at larger zoom it appears to be just 1 pixel wide) Shouldn't be there. I am definitely not drawing it. What I know: its the boundingRect() in size/pos/shape.
It goes away only when I drag the white box.
I googled around and there are no solutions. So what I've done is changed by boundingRect() definition to be childrenBoundingRect().adjusted(-1,-1,1,1) so it's hidden. I previously needed a larger bounding rect so that I could render a circle to connect arrows (connect arrow button). It will have to be a half-circle now :'(
-
E enjoysmath has marked this topic as solved on