Priority: P2: Important
Affects Version/s: 5.14.2
Fix Version/s: None
Component/s: Widgets: GraphicsView
Environment:Python 3.7.6 + PySide2 5.14.2 installed via pip
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.
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 ?