Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.14.2
-
None
-
Python 3.7.6 + PySide2 5.14.2 installed via pip
Description
SETUP:
Create a simple GraphicsView with one top item only used to create
children (to act as a layer which can be shown/hidden). Create one
line as unique child.
ISSUE:
When using a QGraphicsLineItem() as top, the view is displayed as
expected, showing the line crossing the viewport. But when using a
QGraphicsRectItem(), then the display shows more than just the line
--> the 'itemsBoundingRect()' starts at (0,0) as top corner.
Why this difference ?
What is the recommended way to create an "empty" top level item ?